Skip Menu |
 

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

Report information
The Basics
Id: 119930
Status: new
Priority: 0/
Queue: Test-Harness

People
Owner: Nobody in particular
Requestors: MITHALDU [...] cpan.org
Cc:
AdminCc:

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



Subject: todo subtest fails generate extraneous newlines in output
Download (untitled) / with headers
text/plain 1.6k
Example test script: --------------------------------------------------------------------- use Test::More; $TODO++; subtest a => sub { fail; pass; fail; pass; }; done_testing; --------------------------------------------------------------------- Example output: --------------------------------------------------------------------- marketequalizer:~# prove test.pl test.pl .. test.pl .. ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.06 CPU) Result: PASS --------------------------------------------------------------------- --------------------------------------------------------------------- marketequalizer:~# prove -v test.pl test.pl .. # Subtest: a not ok 1 # Failed test at test.pl line 3. ok 2 not ok 3 # Failed test at test.pl line 3. ok 4 1..4 # Looks like you failed 2 tests of 4. not ok 1 - a # TODO 1 # Failed (TODO) test 'a' # at test.pl line 3. 1..1 ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.07 CPU) Result: PASS --------------------------------------------------------------------- --------------------------------------------------------------------- marketequalizer:~# perl test.pl # Subtest: a not ok 1 # Failed test at test.pl line 3. ok 2 not ok 3 # Failed test at test.pl line 3. ok 4 1..4 # Looks like you failed 2 tests of 4. not ok 1 - a # TODO 1 # Failed (TODO) test 'a' # at test.pl line 3. 1..1 marketequalizer:~# --------------------------------------------------------------------- Probably related to this one in some manner: https://rt.cpan.org/Ticket/Display.html?id=115522


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.