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)

Sunday January 07, 2007
03:53 PM

A new TAPx::Parser

[ #32095 ]

In case you don't read the Perl QA list, there's a development version of TAPx::Parser available on the CPAN. It has a huge number of new features (mostly the test harness and the new runtests utility, including:

  • Optional colored test output
  • Telling you which TODO tests passes
  • Capturing more information than Test::Harness
  • Simultaneously run tests in multiple languages via the --execrc feature
  • Tell the harness how Perl will run the tests (via --exec)
  • Uses IPC::Open3 to guarantee STDERR and STDOUT are synchronized (no longer overriding Test::Builder internals)
  • More examples/
  • Very easy to customize and override the test output

See the example/README and the Changes file for a decent idea of what you can do with this new release. I think it's finally at the point where I can switch to this rather than rely on prove and Test::Harness.

If it passes tests on your system, would you please post your OS and version of Perl for me?

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.
  • % uname -a
    Darwin 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386

    % perl -V
    Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
            osname=darwin, osvers=8.7.1, archname=darwin-2level
            uname='darwin 8.7.1 darwin kernel version 8.7.1: wed jun 7 16:19:56 pdt 2006; root:xnu-792.9.72.obj~2relea
  • melo@63:~ $ uname -a
    Darwin 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
    melo@63:~ $ perl -V
    Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
            osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level
            uname='darwin 8.0 darwin kernel version 8.3.0: mon oct 3 20:04:04 pdt 2005; root:xnu-792.6.22.obj~
    life is short
  • I'm really looking forward to the better TODO report! That's a reason to switch from using 'prove'. However, here was my first impression of 'runtests'. The first thing I did was try "-h" and then "--help" to compare the options it supports with prove. In both cases I got this cryptic result: Unknown option: h Cannot determine source for t at /usr/local/lib/perl5/site_perl/5.8.0/TAPx/ line 608 t.... ( There was also no newline at the end of this message ). Support for "--help" would be really
    • Sorry about the formatting of the previous post. The "Preview" had looked OK, but it got submitted as HTML when I meant plain text.

      One more point of feedback: To complete the passing TODO enhancement, it would be really nice to have the line numbers for these tests, like we do with failing tests. With just the test number alone, tests can still be a little challenging to track down, since test scripts don't often contain test numbers.

      • Thanks for your feedback. I'll be working on this. You'll have to talk to Schwern, the maintainer of Test::Simple [], for the 'TODO line number' feature. I have no control over that since the TODO information is TAP and I merely parse the TAP.

        I should have another release out soon.