iq tests
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2720
Otk Tests 1.0
Otk Tests are tests for the Open Tool Kit project. more>>
Otk Tests are tests for the Open Tool Kit project.
Otk is a portable widget library for making graphical user interfaces for C programs. It emphasizes simplicity for the application programmer without eliminating capability. Based on OpenGL, Otk supports Linux, Unix, and other OSs neutrally and efficiently. It is simple and compact, and it strives for easy compilation and linking to other applications.
In seeking to address several issues associated with earlier graphics APIs, Otk explores some interesting methods, such as window-relative layout instead of pixel-based layout.
Enhancements:
- This package of Otk test programs includes scripts to automatically compile and invoke them sequentially.
- The scripts enable quickly testing OTK_LIB functionality.
- The package will be handy for continued regression testing whenever otk_lib is changed or updated.
- It checks that OTK and applications compile will on various platforms, and exercises most features to test for proper operations.
<<lessOtk is a portable widget library for making graphical user interfaces for C programs. It emphasizes simplicity for the application programmer without eliminating capability. Based on OpenGL, Otk supports Linux, Unix, and other OSs neutrally and efficiently. It is simple and compact, and it strives for easy compilation and linking to other applications.
In seeking to address several issues associated with earlier graphics APIs, Otk explores some interesting methods, such as window-relative layout instead of pixel-based layout.
Enhancements:
- This package of Otk test programs includes scripts to automatically compile and invoke them sequentially.
- The scripts enable quickly testing OTK_LIB functionality.
- The package will be handy for continued regression testing whenever otk_lib is changed or updated.
- It checks that OTK and applications compile will on various platforms, and exercises most features to test for proper operations.
Download (0.006MB)
Added: 2006-03-27 License: LGPL (GNU Lesser General Public License) Price:
1306 downloads
TAHI Test Suite 4.0.3 (MIPv6)
TAHI Test Suite provides a mechanism for validating an IPv6 implementation against a standardized test. more>>
TAHI Test Suite provides a mechanism for validating an IPv6 implementation against a standardized test for conformance to the IPv6 specification, extensions and directly related protocols.
TAHI Project is the joint effort formed with the objective of developing and providing the verification technology for IPv6.
The growth process of IPv4 was the history of encountering various kinds of obstacles and conquering such obstacles. However, once the position as infrastructure was established, it is not allowed to repeat the same history. This is a reason why the verification technology is essential for IPv6 deployment.
We research and develop conformance tests and interoperability tests for IPv6.
We closely work with the KAME project and USAGI project. We help activities of them in the quality side by offering the verification technology we develop in the TAHI project and improve the development efficiency.
We open the results and fruits of the project to the public for FREE. Any developer concerned with IPv6 can utilize the results and fruits of TAHI project freely. A free software plays an important role in progress of the Internet. We believe that providing the verification technology for FREE contributes to advances of IPv6. Besides the programs, the specifications and criteria of verification will be included in the Package.
Enhancements:
- This release extends the tests in the specification and code.
- There are assorted minor bugfixes.
<<lessTAHI Project is the joint effort formed with the objective of developing and providing the verification technology for IPv6.
The growth process of IPv4 was the history of encountering various kinds of obstacles and conquering such obstacles. However, once the position as infrastructure was established, it is not allowed to repeat the same history. This is a reason why the verification technology is essential for IPv6 deployment.
We research and develop conformance tests and interoperability tests for IPv6.
We closely work with the KAME project and USAGI project. We help activities of them in the quality side by offering the verification technology we develop in the TAHI project and improve the development efficiency.
We open the results and fruits of the project to the public for FREE. Any developer concerned with IPv6 can utilize the results and fruits of TAHI project freely. A free software plays an important role in progress of the Internet. We believe that providing the verification technology for FREE contributes to advances of IPv6. Besides the programs, the specifications and criteria of verification will be included in the Package.
Enhancements:
- This release extends the tests in the specification and code.
- There are assorted minor bugfixes.
Download (0.35MB)
Added: 2006-11-23 License: BSD License Price:
1067 downloads
Other version of TAHI Test Suite
License:BSD License
License:BSD License
License:BSD License
License:BSD License
Test soon 0.59
Test soon project is a testing framework trying to enable you to write tests quickly. more>>
Test soon project is a testing framework trying to enable you to write tests quickly, organize them easily and still being flexible.
The goal is to utilize the strengths of C++ while minimizing the impact of its weaknesses.
<<lessThe goal is to utilize the strengths of C++ while minimizing the impact of its weaknesses.
Download (MB)
Added: 2007-07-01 License: zlib/libpng License Price:
846 downloads
Test-Parser 1.2
Test::Parser is a collection of parsers for different test output file formats. more>>
Test::Parser is a collection of parsers for different test output file formats. These parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.
Test-Parser can also export tests in SpikeSources TRPI test description XML language.
<<lessTest-Parser can also export tests in SpikeSources TRPI test description XML language.
Download (0.053MB)
Added: 2006-05-04 License: GPL (GNU General Public License) Price:
1268 downloads
Test::ISBN 1.09
Test::ISBN is a Perl module to check international standard book numbers. more>>
Test::ISBN is a Perl module to check international standard book numbers.
SYNOPSIS
use Test::More tests => 1;
use Test::ISBN;
isbn_ok( $isbn );
Functions
isbn_ok( STRING )
Ok is the STRING is a valid ISBN, in any format that Business::ISBN accepts. This function only checks the checksum. The publisher and country codes might be invalid even though the checksum is valid.
isbn_country_ok( STRING, COUNTRY )
Ok is the STRING is a valid ISBN and its country code is the same as COUNTRY.
isbn_publisher_ok( STRING, PUBLISHER )
Ok is the STRING is a valid ISBN and its publisher code is the same as PUBLISHER.
<<lessSYNOPSIS
use Test::More tests => 1;
use Test::ISBN;
isbn_ok( $isbn );
Functions
isbn_ok( STRING )
Ok is the STRING is a valid ISBN, in any format that Business::ISBN accepts. This function only checks the checksum. The publisher and country codes might be invalid even though the checksum is valid.
isbn_country_ok( STRING, COUNTRY )
Ok is the STRING is a valid ISBN and its country code is the same as COUNTRY.
isbn_publisher_ok( STRING, PUBLISHER )
Ok is the STRING is a valid ISBN and its publisher code is the same as PUBLISHER.
Download (0.004MB)
Added: 2007-05-04 License: Perl Artistic License Price:
903 downloads
Acme::Tests 0.03
Acme::Tests is a Perl module to see how much do you know. more>>
Acme::Tests is a Perl module to see how much do you know.
SYNOPSIS
perl Makefile.PL
make test
This module is a "test software", it has tests in the software rather then software tests. Upon installation, you are reqruied to answered several question, and the installation would be only successful if all you pass them all.
<<lessSYNOPSIS
perl Makefile.PL
make test
This module is a "test software", it has tests in the software rather then software tests. Upon installation, you are reqruied to answered several question, and the installation would be only successful if all you pass them all.
Download (0.011MB)
Added: 2007-03-07 License: GPL (GNU General Public License) Price:
961 downloads
Test::Class 0.24
Test::Class is a Perl module that allows you to easily create test classes in an xUnit/JUnit style. more>>
Test::Class is a Perl module that allows you to easily create test classes in an xUnit/JUnit style.
SYNOPSIS
package Example::Test;
use base qw(Test::Class);
use Test::More;
# setup methods are run before every test method.
sub make_fixture : Test(setup) {
my $array = [1, 2];
shift->{test_array} = $array;
};
# a test method that runs 1 test
sub test_push : Test {
my $array = shift->{test_array};
push @$array, 3;
is_deeply($array, [1, 2, 3], push worked);
};
# a test method that runs 4 tests
sub test_pop : Test(4) {
my $array = shift->{test_array};
is(pop @$array, 2, pop = 2);
is(pop @$array, 1, pop = 1);
is_deeply($array, [], array empty);
is(pop @$array, undef, pop = undef);
};
# teardown methods are run after every test method.
sub teardown : Test(teardown) {
my $array = shift->{test_array};
diag("array = (@$array) after test(s)");
};
later in a nearby .t file
#! /usr/bin/perl
use Example::Test;
# run all the test methods in Example::Test
Test::Class->runtests;
Outputs:
1..5
ok 1 - pop = 2
ok 2 - pop = 1
ok 3 - array empty
ok 4 - pop = undef
# array = () after test(s)
ok 5 - push worked
# array = (1 2 3) after test(s)
<<lessSYNOPSIS
package Example::Test;
use base qw(Test::Class);
use Test::More;
# setup methods are run before every test method.
sub make_fixture : Test(setup) {
my $array = [1, 2];
shift->{test_array} = $array;
};
# a test method that runs 1 test
sub test_push : Test {
my $array = shift->{test_array};
push @$array, 3;
is_deeply($array, [1, 2, 3], push worked);
};
# a test method that runs 4 tests
sub test_pop : Test(4) {
my $array = shift->{test_array};
is(pop @$array, 2, pop = 2);
is(pop @$array, 1, pop = 1);
is_deeply($array, [], array empty);
is(pop @$array, undef, pop = undef);
};
# teardown methods are run after every test method.
sub teardown : Test(teardown) {
my $array = shift->{test_array};
diag("array = (@$array) after test(s)");
};
later in a nearby .t file
#! /usr/bin/perl
use Example::Test;
# run all the test methods in Example::Test
Test::Class->runtests;
Outputs:
1..5
ok 1 - pop = 2
ok 2 - pop = 1
ok 3 - array empty
ok 4 - pop = undef
# array = () after test(s)
ok 5 - push worked
# array = (1 2 3) after test(s)
Download (0.046MB)
Added: 2007-06-13 License: Perl Artistic License Price:
863 downloads
Test::Parser 1.1
Test::Parser is a collection of parsers for different test output file formats. more>>
Test::Parser is a collection of parsers for different test output file formats.
These parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.
Test::Parser can also export tests in SpikeSources TRPI test description XML language.
Installation:
To install the script and man pages in the standard areas, give the sequence of commands
$ perl Makefile.PL
$ make
$ make test
$ make install # you probably need to do this step as superuser
If you want to install the script in your own private space, use
$ perl Makefile.PL PREFIX=/home/joeuser
INSTALLMAN1DIR=/home/joeuser/man/man1
INSTALLMAN3DIR=/home/joeuser/man/man3
$ make
$ make test
$ make install # can do this step as joeuser
Note that `make test` does nothing interesting.
Enhancements:
- This release improves the LTP parser and adds a parse_ltp script that prints a tabular summary of the PASS/FAILs of test cases.
<<lessThese parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.
Test::Parser can also export tests in SpikeSources TRPI test description XML language.
Installation:
To install the script and man pages in the standard areas, give the sequence of commands
$ perl Makefile.PL
$ make
$ make test
$ make install # you probably need to do this step as superuser
If you want to install the script in your own private space, use
$ perl Makefile.PL PREFIX=/home/joeuser
INSTALLMAN1DIR=/home/joeuser/man/man1
INSTALLMAN3DIR=/home/joeuser/man/man3
$ make
$ make test
$ make install # can do this step as joeuser
Note that `make test` does nothing interesting.
Enhancements:
- This release improves the LTP parser and adds a parse_ltp script that prints a tabular summary of the PASS/FAILs of test cases.
Download (0.044MB)
Added: 2006-04-07 License: GPL (GNU General Public License) Price:
1295 downloads
Test::Resub 1.02
Test::Resub is a lexically scoped subroutine replacement for testing. more>>
Test::Resub is a lexically scoped subroutine replacement for testing.
SYNOPSIS
#!/usr/bin/perl
use Test::More tests => 4;
use Test::Resub qw(resub);
{
package Somewhere;
sub show {
my ($class, $message) = @_;
return "$class, $message";
}
}
# sanity
is( Somewhere->show(beyond the sea), Somewhere, beyond the sea );
# scoped replacement of subroutine with argument capturing
{
my $rs = resub Somewhere::show, sub { hi }, capture => 1;
is( Somewhere->show(over the rainbow), hi );
is_deeply( $rs->method_args, [[over the rainbow]] );
}
# scope ends, resub goes away, original code returns
is( Somewhere->show(waiting for me), Somewhere, waiting for me );
This module allows you to temporarily replace a subroutine/method with arbitrary code. Later, you can tell how many times was it called and with what arguments each time. You can also specify that the subroutine/method must get called, must not get called, or may be optionally called.
<<lessSYNOPSIS
#!/usr/bin/perl
use Test::More tests => 4;
use Test::Resub qw(resub);
{
package Somewhere;
sub show {
my ($class, $message) = @_;
return "$class, $message";
}
}
# sanity
is( Somewhere->show(beyond the sea), Somewhere, beyond the sea );
# scoped replacement of subroutine with argument capturing
{
my $rs = resub Somewhere::show, sub { hi }, capture => 1;
is( Somewhere->show(over the rainbow), hi );
is_deeply( $rs->method_args, [[over the rainbow]] );
}
# scope ends, resub goes away, original code returns
is( Somewhere->show(waiting for me), Somewhere, waiting for me );
This module allows you to temporarily replace a subroutine/method with arbitrary code. Later, you can tell how many times was it called and with what arguments each time. You can also specify that the subroutine/method must get called, must not get called, or may be optionally called.
Download (0.014MB)
Added: 2007-07-13 License: Perl Artistic License Price:
833 downloads
IQ bot 5.9.1
IQ is an intelligent, modular IRC robot written in PHP. more>>
IQ has been my pet project since September 2003. IQ is an intelligent, modular IRC robot written in PHP. I wrote the original branch, 0.1.x, back in late 2003, and developed it and modules for it until early 2004. At some point in June 2004, I became inspired to rewrite the bots core and start the 0.9.x branch.
The new (0.9.x) branch of IQ is just about an entire rewrite of the original, with better coding techniques, and usage of object oriented PHP. Bugs from the original have been corrected, and dozens of new features have been added. My goal with IQ is to create a truly multi-purpose IRC bot that may be easily coded for, while keeping the core relatively light-weight.
IQ is built from modules and can dynamically load and unload modules. Writing modules for the bot is simple, and any PHP developer should be able to write his or her own modules to have the bot act as needed. Modules utilize a binding system (modeled after that used by eggdrop), which create triggers that can be executed upon any regular event (msg, join, kick, nick, quit, part, etc), as well as other bot-specific events (idle, connect, disconnect), and call lambda-style functions in the module to perform the desired actions.
Enhancements:
- Fixed case-sensitivity issues with dancer ircd
- Improved mode checking for non-hybrid ircds
- Miscellaneous bug fixes and code cleanups
- Added Database class for support for MySQL and pgSQL database servers
- Headlines module removed
- Added currency module
- Added idletime module
- Disallowed running as root
<<lessThe new (0.9.x) branch of IQ is just about an entire rewrite of the original, with better coding techniques, and usage of object oriented PHP. Bugs from the original have been corrected, and dozens of new features have been added. My goal with IQ is to create a truly multi-purpose IRC bot that may be easily coded for, while keeping the core relatively light-weight.
IQ is built from modules and can dynamically load and unload modules. Writing modules for the bot is simple, and any PHP developer should be able to write his or her own modules to have the bot act as needed. Modules utilize a binding system (modeled after that used by eggdrop), which create triggers that can be executed upon any regular event (msg, join, kick, nick, quit, part, etc), as well as other bot-specific events (idle, connect, disconnect), and call lambda-style functions in the module to perform the desired actions.
Enhancements:
- Fixed case-sensitivity issues with dancer ircd
- Improved mode checking for non-hybrid ircds
- Miscellaneous bug fixes and code cleanups
- Added Database class for support for MySQL and pgSQL database servers
- Headlines module removed
- Added currency module
- Added idletime module
- Disallowed running as root
Download (0.03MB)
Added: 2006-06-17 License: GPL (GNU General Public License) Price:
1237 downloads
Test::Simple 0.70
Test::Simple is a Perl module with basic utilities for writing tests. more>>
Test::Simple is a Perl module with basic utilities for writing tests.
SYNOPSIS
use Test::Simple tests => 1;
ok( $foo eq $bar, foo is bar );
** If you are unfamiliar with testing read Test::Tutorial first! **
This is an extremely simple, extremely basic module for writing tests suitable for CPAN modules and other pursuits. If you wish to do more complicated testing, use the Test::More module (a drop-in replacement for this one).
The basic unit of Perl testing is the ok. For each thing you want to test your program will print out an "ok" or "not ok" to indicate pass or fail. You do this with the ok() function (see below).
The only other constraint is you must pre-declare how many tests you plan to run. This is in case something goes horribly wrong during the test and your test program aborts, or skips a test or whatever. You do this like so:
use Test::Simple tests => 23;
You must have a plan.
ok
ok( $foo eq $bar, $name );
ok( $foo eq $bar );
ok() is given an expression (in this case $foo eq $bar). If its true, the test passed. If its false, it didnt. Thats about it.
ok() prints out either "ok" or "not ok" along with a test number (it keeps track of that for you).
# This produces "ok 1 - Hell not yet frozen over" (or not ok)
ok( get_temperature($hell) > 0, Hell not yet frozen over );
If you provide a $name, that will be printed along with the "ok/not ok" to make it easier to find your test when if fails (just search for the name). It also makes it easier for the next guy to understand what your test is for. Its highly recommended you use test names.
All tests are run in scalar context. So this:
ok( @stuff, I have some stuff );
will do what you mean (fail if stuff is empty)
Test::Simple will start by printing number of tests run in the form "1..M" (so "1..5" means youre going to run 5 tests). This strange format lets Test::Harness know how many tests you plan on running in case something goes horribly wrong.
If all your tests passed, Test::Simple will exit with zero (which is normal). If anything failed it will exit with how many failed. If you run less (or more) tests than you planned, the missing (or extras) will be considered failures. If no tests were ever run Test::Simple will throw a warning and exit with 255. If the test died, even after having successfully completed all its tests, it will still be considered a failure and will exit with 255.
So the exit codes are...
0 all tests successful
255 test died or all passed but wrong # of tests run
any other number how many failed (including missing or extras)
If you fail more than 254 tests, it will be reported as 254.
This module is by no means trying to be a complete testing system. Its just to get you started. Once youre off the ground its recommended you look at Test::More.
<<lessSYNOPSIS
use Test::Simple tests => 1;
ok( $foo eq $bar, foo is bar );
** If you are unfamiliar with testing read Test::Tutorial first! **
This is an extremely simple, extremely basic module for writing tests suitable for CPAN modules and other pursuits. If you wish to do more complicated testing, use the Test::More module (a drop-in replacement for this one).
The basic unit of Perl testing is the ok. For each thing you want to test your program will print out an "ok" or "not ok" to indicate pass or fail. You do this with the ok() function (see below).
The only other constraint is you must pre-declare how many tests you plan to run. This is in case something goes horribly wrong during the test and your test program aborts, or skips a test or whatever. You do this like so:
use Test::Simple tests => 23;
You must have a plan.
ok
ok( $foo eq $bar, $name );
ok( $foo eq $bar );
ok() is given an expression (in this case $foo eq $bar). If its true, the test passed. If its false, it didnt. Thats about it.
ok() prints out either "ok" or "not ok" along with a test number (it keeps track of that for you).
# This produces "ok 1 - Hell not yet frozen over" (or not ok)
ok( get_temperature($hell) > 0, Hell not yet frozen over );
If you provide a $name, that will be printed along with the "ok/not ok" to make it easier to find your test when if fails (just search for the name). It also makes it easier for the next guy to understand what your test is for. Its highly recommended you use test names.
All tests are run in scalar context. So this:
ok( @stuff, I have some stuff );
will do what you mean (fail if stuff is empty)
Test::Simple will start by printing number of tests run in the form "1..M" (so "1..5" means youre going to run 5 tests). This strange format lets Test::Harness know how many tests you plan on running in case something goes horribly wrong.
If all your tests passed, Test::Simple will exit with zero (which is normal). If anything failed it will exit with how many failed. If you run less (or more) tests than you planned, the missing (or extras) will be considered failures. If no tests were ever run Test::Simple will throw a warning and exit with 255. If the test died, even after having successfully completed all its tests, it will still be considered a failure and will exit with 255.
So the exit codes are...
0 all tests successful
255 test died or all passed but wrong # of tests run
any other number how many failed (including missing or extras)
If you fail more than 254 tests, it will be reported as 254.
This module is by no means trying to be a complete testing system. Its just to get you started. Once youre off the ground its recommended you look at Test::More.
Download (0.076MB)
Added: 2007-05-04 License: Perl Artistic License Price:
903 downloads
Test::Chunks 0.39
Test::Chunks is a Data Driven Testing Framework. more>>
Test::Chunks is a Data Driven Testing Framework.
NOTE - This module has been deprecated and replaced by Test::Base. This is basically just a renaming of the module. Test::Chunks was not the best name for this module. Please discontinue using Test::Chunks and switch to Test::Base.
Helpful Hint: change all occurences of chunk to block in your test code, and everything should work exactly the same.
SYNOPSIS
use Test::Chunks;
use Pod::Simple;
delimiters qw(=== +++);
plan tests => 1 * chunks;
for my $chunk (chunks) {
# Note that this code is conceptual only. Pod::Simple is not so
# simple as to provide a simple pod_to_html function.
is(
Pod::Simple::pod_to_html($chunk->pod),
$chunk->text,
$chunk->name,
);
}
__END__
=== Header 1 Test
This is an optional description
of this particular test.
+++ pod
=head1 The Main Event
+++ html
< h1 >The Main Event< /h1 >
=== List Test
+++ pod
=over
=item * one
=item * two
=back
+++ html
< ul >
< li >one< /li >
< li >two< /li >
< /ul >
There are many testing situations where you have a set of inputs and a set of expected outputs and you want to make sure your process turns each input chunk into the corresponding output chunk. Test::Chunks allows you do this with a minimal amount of code.
<<lessNOTE - This module has been deprecated and replaced by Test::Base. This is basically just a renaming of the module. Test::Chunks was not the best name for this module. Please discontinue using Test::Chunks and switch to Test::Base.
Helpful Hint: change all occurences of chunk to block in your test code, and everything should work exactly the same.
SYNOPSIS
use Test::Chunks;
use Pod::Simple;
delimiters qw(=== +++);
plan tests => 1 * chunks;
for my $chunk (chunks) {
# Note that this code is conceptual only. Pod::Simple is not so
# simple as to provide a simple pod_to_html function.
is(
Pod::Simple::pod_to_html($chunk->pod),
$chunk->text,
$chunk->name,
);
}
__END__
=== Header 1 Test
This is an optional description
of this particular test.
+++ pod
=head1 The Main Event
+++ html
< h1 >The Main Event< /h1 >
=== List Test
+++ pod
=over
=item * one
=item * two
=back
+++ html
< ul >
< li >one< /li >
< li >two< /li >
< /ul >
There are many testing situations where you have a set of inputs and a set of expected outputs and you want to make sure your process turns each input chunk into the corresponding output chunk. Test::Chunks allows you do this with a minimal amount of code.
Download (0.032MB)
Added: 2006-06-16 License: Perl Artistic License Price:
1225 downloads
Test::Version 0.02
Test::Version is a Perl module that has the role to check for VERSION information in modules. more>>
Test::Version is a Perl module that has the role to check for VERSION information in modules.
SYNOPSIS
use Test::Version;
plan tests => $num_tests;
version_ok( $file );
FUNCTIONS
version_ok( FILENAME, [EXPECTED, [NAME] ] )
version_ok requires a filename and returns one of the three values:
NO_FILE Could not find the file
NO_VERSION File had no VERSION information
VERSION_OK VERSION information exists
version_ok okays a test without an expected result if it finds VERSION information, or if an expected result is specified and it finds that condition. For instance, if you know there is no VERSION information,
version_ok( $file, NO_VERSION );
When it fails, version_ok will show error information.
The optional third argument NAME is the name of the test which version_ok passes through to Test::Builder. Otherwise, it choose a default test name "VERSION test for FILENAME".
<<lessSYNOPSIS
use Test::Version;
plan tests => $num_tests;
version_ok( $file );
FUNCTIONS
version_ok( FILENAME, [EXPECTED, [NAME] ] )
version_ok requires a filename and returns one of the three values:
NO_FILE Could not find the file
NO_VERSION File had no VERSION information
VERSION_OK VERSION information exists
version_ok okays a test without an expected result if it finds VERSION information, or if an expected result is specified and it finds that condition. For instance, if you know there is no VERSION information,
version_ok( $file, NO_VERSION );
When it fails, version_ok will show error information.
The optional third argument NAME is the name of the test which version_ok passes through to Test::Builder. Otherwise, it choose a default test name "VERSION test for FILENAME".
Download (0.005MB)
Added: 2007-05-07 License: Perl Artistic License Price:
902 downloads
Test::use::ok 0.02
Test::use::ok is an alternative to Test::More::use_ok. more>>
Test::use::ok is an alternative to Test::More::use_ok.
SYNOPSIS
use ok( Some::Module );
According to the Test::More documentation, it is recommended to run use_ok() inside a BEGIN block, so functions are exported at compile-time and prototypes are properly honored.
That is, instead of writing this:
use_ok( Some::Module );
use_ok( Other::Module );
One should write this:
BEGIN { use_ok( Some::Module ); }
BEGIN { use_ok( Other::Module ); }
However, people often either forget to add BEGIN, or mistakenly group use_ok with other tests in a single BEGIN block, which can create subtle differences in execution order.
With this module, simply change all use_ok in test scripts to use ok, and they will be executed at BEGIN time. The explicit space after use makes it clear that this is a single compile-time action.
<<lessSYNOPSIS
use ok( Some::Module );
According to the Test::More documentation, it is recommended to run use_ok() inside a BEGIN block, so functions are exported at compile-time and prototypes are properly honored.
That is, instead of writing this:
use_ok( Some::Module );
use_ok( Other::Module );
One should write this:
BEGIN { use_ok( Some::Module ); }
BEGIN { use_ok( Other::Module ); }
However, people often either forget to add BEGIN, or mistakenly group use_ok with other tests in a single BEGIN block, which can create subtle differences in execution order.
With this module, simply change all use_ok in test scripts to use ok, and they will be executed at BEGIN time. The explicit space after use makes it clear that this is a single compile-time action.
Download (0.013MB)
Added: 2007-02-14 License: MIT/X Consortium License Price:
982 downloads
Test::Manifest 1.17
Test::Manifest is a Perl module created to interact with a t/test_manifest file. more>>
Test::Manifest is a Perl module created to interact with a t/test_manifest file.
SYNOPSIS
# in Makefile.PL
eval "use Test::Manifest";
# in the file t/test_manifest, list the tests you want
# to run
Test::Harness assumes that you want to run all of the .t files in the t/ directory in ascii-betical order during make test unless you say otherwise. This leads to some interesting naming schemes for test files to get them in the desired order. This interesting names ossify when they get into source control, and get even more interesting as more tests show up.
Test::Manifest overrides the default behaviour by replacing the test_via_harness target in the Makefile. Instead of running at the t/*.t files in ascii-betical order, it looks in the t/test_manifest file to find out which tests you want to run and the order in which you want to run them. It constructs the right value for MakeMaker to do the right thing.
In t/test_manifest, simply list the tests that you want to run. Their order in the file is the order in which they run. You can comment lines with a #, just like in Perl, and Test::Manifest will strip leading and trailing whitespace from each line. It also checks that the specified file is actually in the t/ directory. If the file does not exist, it does not put its name in the list of test files to run.
Optionally, you can add a number after the test name in test_manifest to define sets of tests. See get_t_files() for more information.
Functions
run_t_manifest( TEST_VERBOSE, INST_LIB, INST_ARCHLIB, TEST_LEVEL )
Run all of the files in t/test_manifest through Test::Harness:runtests in the order they appear in the file.
eval "use Test::Manifest";
get_t_files( [LEVEL] )
In scalar context it returns a single string that you can use directly in WriteMakefile(). In list context it returns a list of the files it found in t/test_manifest.
If a t/test_manifest file does not exist, get_t_files() returns nothing.
get_t_files() warns you if it cant find t/test_manifest, or if entries start with "t/". It skips blank lines, and strips Perl style comments from the file.
Each line in t/test_manifest can have three parts: the test name, the test level (a floating point number), and a comment. By default, the test level is 1.
test_name.t 2 #Run this only for level 2 testing
Without an argument, get_t_files() returns all the test files it finds. With an argument that is true (so you cant use 0 as a level) and is a number, it skips tests with a level greater than that argument. You can then define sets of tests and choose a set to run. For instance, you might create a set for end users, but also add on a set for deeper testing for developers.
Experimentally, you can include a command to grab test names from another file. The command starts with a ; to distinguish it from a true filename. The filename (currently) is relative to the current working directory, unlike the filenames, which are relative to t/. The filenames in the included are still relative to t/.
;include t/file_with_other_test_names.txt
To select sets of tests, specify the level in the variable TEST_LEVEL during `make test`.
make test # run all tests no matter the level
make test TEST_LEVEL=2 # run all tests level 2 and below
make_test_manifest()
Creates the test_manifest file in the t directory by reading the contents of the t directory.
TO DO: specify tests in argument lists.
TO DO: specify files to skip.
manifest_name()
Returns the name of the test manifest file, relative to t/
<<lessSYNOPSIS
# in Makefile.PL
eval "use Test::Manifest";
# in the file t/test_manifest, list the tests you want
# to run
Test::Harness assumes that you want to run all of the .t files in the t/ directory in ascii-betical order during make test unless you say otherwise. This leads to some interesting naming schemes for test files to get them in the desired order. This interesting names ossify when they get into source control, and get even more interesting as more tests show up.
Test::Manifest overrides the default behaviour by replacing the test_via_harness target in the Makefile. Instead of running at the t/*.t files in ascii-betical order, it looks in the t/test_manifest file to find out which tests you want to run and the order in which you want to run them. It constructs the right value for MakeMaker to do the right thing.
In t/test_manifest, simply list the tests that you want to run. Their order in the file is the order in which they run. You can comment lines with a #, just like in Perl, and Test::Manifest will strip leading and trailing whitespace from each line. It also checks that the specified file is actually in the t/ directory. If the file does not exist, it does not put its name in the list of test files to run.
Optionally, you can add a number after the test name in test_manifest to define sets of tests. See get_t_files() for more information.
Functions
run_t_manifest( TEST_VERBOSE, INST_LIB, INST_ARCHLIB, TEST_LEVEL )
Run all of the files in t/test_manifest through Test::Harness:runtests in the order they appear in the file.
eval "use Test::Manifest";
get_t_files( [LEVEL] )
In scalar context it returns a single string that you can use directly in WriteMakefile(). In list context it returns a list of the files it found in t/test_manifest.
If a t/test_manifest file does not exist, get_t_files() returns nothing.
get_t_files() warns you if it cant find t/test_manifest, or if entries start with "t/". It skips blank lines, and strips Perl style comments from the file.
Each line in t/test_manifest can have three parts: the test name, the test level (a floating point number), and a comment. By default, the test level is 1.
test_name.t 2 #Run this only for level 2 testing
Without an argument, get_t_files() returns all the test files it finds. With an argument that is true (so you cant use 0 as a level) and is a number, it skips tests with a level greater than that argument. You can then define sets of tests and choose a set to run. For instance, you might create a set for end users, but also add on a set for deeper testing for developers.
Experimentally, you can include a command to grab test names from another file. The command starts with a ; to distinguish it from a true filename. The filename (currently) is relative to the current working directory, unlike the filenames, which are relative to t/. The filenames in the included are still relative to t/.
;include t/file_with_other_test_names.txt
To select sets of tests, specify the level in the variable TEST_LEVEL during `make test`.
make test # run all tests no matter the level
make test TEST_LEVEL=2 # run all tests level 2 and below
make_test_manifest()
Creates the test_manifest file in the t directory by reading the contents of the t directory.
TO DO: specify tests in argument lists.
TO DO: specify files to skip.
manifest_name()
Returns the name of the test manifest file, relative to t/
Download (0.007MB)
Added: 2007-05-04 License: Perl Artistic License Price:
904 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above iq tests search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed