Two big new things in the testing modules.
First, "use Test::More no_plan;" now works! What this means is you
can write:
use Test::More no_plan;
ok($foo == $bar, 'foo is bar');
ok($right ne $wrong, 'morality works');
That's it. You no longer need to declare how many tests are going to
be run.
As a result of that is the second thing, Pod::Tests is actually
useful! Using this new feature you can simply throw tests into your
code and not have to worry about counting them up. pod2test now uses
Test::More by default for your embedded tests.
The new versions are:
Test::Simple 0.07
Test::More 0.05
Pod::Tests 0.03
and are all on the way up to CPAN as I type. If they haven't made it
to your mirror yet, they can always be gotten from
http://www.pobox.com/~schwern/src/
Revision history for Perl extension Test::Simple
0.07 Tue Jun 12 15:55:54 BST 2001
- 'use Test::Simple' by itself no longer causes death
- Yet more fixes for death in eval
- Limiting max failures reported via exit code to 254.
Revision history for Perl extension Test::More.
0.05 Tue Jun 12 16:16:55 EDT 2001
* use Test::More no_plan; implemented
Revision history for Perl extension Pod::Tests.
0.03 Tue Jun 12 17:42:28 EDT 2001
* Now using Test::More and the no_plan feature in pod2tests
* Multiple tests in one block supported!
* Actually usable.
--
Michael G Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/
Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One