Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Tuesday July 18, 2006
04:34 AM


[ #30324 ]

Just to let people know that I haven't completely flaked on the TAP parser, you can download the latest version from my web site. The documentation for this version is minimal and is mostly present in the tests.

As of July 18, 2006, here's the current roadmap:


  • 'Bail out!' is now handled.
  • The parser is now data driven, thus skipping a huge if/else chain
  • We now track all TODOs, SKIPs, passes and fails by test number (Test::Harness currently cannot do this)
  • Removed all non-core modules.
  • Store original line for each TAP line. Available through $result->raw().
  • Renamed test is_ok() to passed() and added actual_passed(). The former method takes into account TODO tests and the latter returns the actual pass/fail status.
  • Fixed a bug where SKIP tests would not be identified correctly.


  • Allow streams to be read.
  • No more dying. Instead, aggregate errors and count 'em.
  • Docs!
  • Create a separate class?
  • Figure out the namespace.
  • Allow description transformations to be applied. For example:

    $description =~ s/\A\s*-\s*//; # remove leading '- '

It still needs a fair amount of work, though. One problem is that it currently will probably break on VMS since that system tends to put the "not" and "ok" on separate lines. That really shouldn't be too hard to parse, but I'll cross that bridge when I get there.

I'm particularly pleased about the tracking of SKIP and TODO tests. I'm tired of seeing a message like "3 tests unexpectly succeeded" and wondering where the heck they came from. When you have 400 tests scroll past your eyes, that can be tough to track down.

I also confess that I've been cribbing ideas from TAP::Harness. Joe Bob sez "check it out". (Of course, it's vaporware at this point) and I'm not sure I'd bet on it being done before the Perl 6 alpha, but if it is, it would be great.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.