Skip Menu |

This queue is for tickets about the Test-NoWarnings CPAN distribution.

Report information
The Basics
Id: 52412
Status: rejected
Priority: 0/
Queue: Test-NoWarnings

People
Owner: Nobody in particular
Requestors: perl-cpan [...] bereft.net
ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.084
Fixed in: (no value)



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
On Thu Dec 03 15:39:12 2009, BOWMANBS wrote: Show quoted text
On that ticket there was a suggestion of putting the nowarnings functionality into Test::More directly. Was there any appetite for this? I also strongly desire for done_testing to play nicely with Test::NoWarnings.
For anyone following along at home, I created http://metacpan.org/module/Test::Warnings so as to better handle done_testing.