Hi all, 
 
Because I'll be gone a couple of days, I wanted to get a quick alpha of the TAP 
parser out there.  It has no docs. 
 
Here's how you use it (or you could look at the tests): 
 
  my $parser = TAP::Parser->new; 
  
  $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 
  } 
  
You can download it from 
http://users.easystreet.com/ovid/downloads/TAP-Parser-0.01.tar.gz  

It'd be awfully swell if you can feed it a bunch of TAP output so I can see 
what if fails on.  Kibitzing is also encouraged, though I warn you that the 
thing was thrown together rather hastily.

Cheers,
Ovid
 
-- If this message is a response to a question on a mailing list, please send 
follow up questions to the list. 
  
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/ 
 
 


Reply via email to