Subject: | Test::NoWarnings and Test::More done_testing() extra test |
Hello,
Test::More 0.87_01 added a done_testing(), a feature to replace
no_plan, and I've noticed a compatibility issue with Test::NoWarnings.
It can't be considered a bug in Test::NoWarnings, but is worth
mentioning anyway:
$ perl -MTest::More -MTest::NoWarnings -e 'ok(1); done_testing()'
ok 1
1..1
ok 2 - no warnings
# Looks like you planned 1 test but ran 2.
# same in an END:
$ perl -MTest::NoWarnings -MTest::More -e 'ok(1); END { done_testing() }'
ok 1
1..1
ok 2 - no warnings
# Looks like you planned 1 test but ran 2.
$ pmvers Test::More
0.94
$ pmvers Test::NoWarnings
0.084
$ perl -v
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
Also reported at Test::More:
http://code.google.com/p/test-more/issues/detail?id=56
Thanks