[tapx-dev] Test::Harness 3.0

Andy Dougherty doughera at lafayette.edu
Mon Jul 23 18:01:00 BST 2007


On Mon, 23 Jul 2007, Andy Armstrong wrote:

> On 23 Jul 2007, at 17:17, Andy Dougherty wrote:
> > Here's the countingbug.t test script.
> > 
> > #!/usr/bin/perl -wT
> > 
> > use strict;
> > 
> > use lib 'lib';
> > use TAP::Base;
> 
> What are those for ^^^^^

Cargo cult.  I blindly copied them from one of the other tests in the t/ 
directory.

> > use Test::More tests => 6;
> > ok(1);
> > ok(0);
> > ok(0);
> > ok(0);
> > die("unexpected crash!");
> > ok(5);
> > ok(6);
> 
> I see the problem. This isn't a test /of/ TAP::Parser - it's just a test
> that fails under Test::Harness. So when you run the TAP::Parser test
> suite under Test::Harness as per your example you see the T::H bug.
> You're not testing TAP::Parser at all.

It wasn't my intention to test TAP::Parser.  Based on the subject line, I 
wanted to test Test::Harness 3.0, which supposedly fixes most of the bugs 
in the Test::Harness RT queue.  I wanted to point out that it doesn't fix 
this bug.

> As Ovid said if you actually run your test using runtests you get
[ . . . ]

Yes, I understand that, but it's not my point.  I wanted to run the 
standard sequence:

    perl Makefile.PL
    make
    make test

When I do that, I get the double-counting error.

-- 
    Andy Dougherty		doughera at lafayette.edu



More information about the tapx-dev mailing list