[tapx-dev] Test::Harness 3.0

Ovid publiustemp-p5p3 at yahoo.com
Mon Jul 23 15:11:35 BST 2007


----- Original Message ----
From: Andy Dougherty <doughera at lafayette.edu>

> It looks like my counting bug 
>    http://rt.cpan.org/Public/Bug/Display.html?id=27377
> is still there.

TAP::Parser does not have that counting bug:

  runtests  -Q count.t
  # Failed test 2 in count.t at line 9
  #  count.t line 9 is: ok(0);
  # Failed test 3 in count.t at line 10
  #  count.t line 10 is: ok(0);
  # Failed test 4 in count.t at line 11
  #  count.t line 11 is: ok(0);
  unexpected crash! at count.t line 12.

  Test Summary Report
  -------------------
  count.t (Wstat: 65280 Tests: 4 Failed: 3)
    Failed tests:  2-4
    Non-zero exit status: 255
    Parse errors: Bad plan.  You planned 6 tests but ran 4.
  Files=1, Tests=4,  0 wallclock secs ( 0.02 cusr +  0.02 csys =  0.03 CPU)

It correctly reports the number of tests run, but lists a parse error, stating that the number of tests run didn't match the plan.  This is the behavior that we've agreed upon ("we" being those working on TAP::Parser along with those who do/did maintain Test::Harness).  Did I misunderstand something?

> Testing with 5.8.8, I also got the following warning:
>
>    t/00compile.........# Testing Test::Harness 2.65_01 under Perl 5.008008 
>    and Test::More 0.42
>    Argument "2.65_01" isn't numeric in subroutine entry at t/lib/Test/More.pm 
>    line 670

I think you're testing Test::Harness and not TAP::Parser, the intended replacement (it will be renamed to Test::Harness, of course).  Sorry if I wasn't clear on that point.

Cheers,
Ovid
--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/





More information about the tapx-dev mailing list