Skip Menu |

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

Report information
The Basics
Id: 50286
Status: resolved
Priority: 0/
Queue: Test-Continuous

People
Owner: GUGOD [...] cpan.org
Requestors: ywatase [...] gmail.com
Cc:
AdminCc:

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



Subject: Result of subtest is treated as unknown, then Test::Coninuous become noisy.
Date: Wed, 7 Oct 2009 17:51:00 +0900
To: bug-test-continuous [...] rt.cpan.org
From: yusuke watase <ywatase [...] gmail.com>
Dear Kang-min Liu On using autoprove and subtest of Test::More, Test::Continuous::Formatter treat result of subtest as unknown. Then, autoprove isi noisy. I want to fix it. I write patch. My patch makes TAP::Parser treat subtest ususal test rest, at least on my environment. Please consider my request. <My environment> This is perl, v5.8.8 built for i386-linux-thread-multi Test::Continuous: 0.67 Test::More: 0.94 TAP::Parser: 3.16 < sample code > $ cat t/test.t #!/usr/bin/perl use Test::More qw(no_plan); pass('one'); subtest 'two' => sub { plan tests => 2; pass('2.1'); pass('2.2'); }; pass('three'); < sample resit > $ autoprove [MSG] Will run continuously test /var/tmp/test/t/test.t [MSG]:/var/tmp//test/t/test.t was changed. ALL PASSED /var/tmp/test/t/test.t: 1..2 ok 1 - 2.1 ok 2 - 2.2 <patch> --- Test/Continuous/Formatter.pm.orig 2009-10-07 17:43:12.000000000 +0900 +++ Test/Continuous/Formatter.pm 2009-10-07 17:42:02.000000000 +0900 @@ -83,7 +83,7 @@ return if $output =~ /^\s+$/s; - my @lines = split(/\n/, $output); + my @lines = split(/\n\s*/, $output); my $description = shift @lines; $description =~ m/^(.+)\s\.\./g; -- Yusuke Watase <ywatase@gmail.com>
Thank you Watase san, for providing the patch. It looks good and I'll ship it with the upcoming 0.68 release.