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

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.
  • That sounds really cool. I've been thinking about how to get Perl tests integrated into CruiseControl recently, and I reckon that turning TAP output into junit's XML format will probably go a long way...


    • by Ovid (2709) on 2006.07.04 9:27 (#48541) Homepage Journal

      Ah, cool. My first customer :)

      The interface will probably look something like this:

      my $parser = TAP::Parser->new($optional_version_number);

      $parser->parse($tap); # croaks on bad TAP

      print $parser->plan;
      while ( my $test = $parser->tests ) {
          print $test->as_string;
          # or
          print $test->is_ok;        # boolean value
          print $test->ok;           # 'not ok' or 'ok'
          print $test->number;
          print $test->description;
          print $test->directive;    # TODO or SKIP data

      I'll be out of town for the next couple of days celebrating a brother's graduation (and later recovering from said celebration), but I hope to return to this soon. It looks much easier than I thought, but the lexer tests took a while. Feature requests welcome.

      • Don't get too happy -- it's still in the thought stage over here. But I'll let you know when it gets down to some code...