CPAN Module Review: TAP::Parser
TAP::Parser is the intended replacement for the venerable Test::Harness module. The intent is to clean up the code in such a way that writing custom test harnesses and supporting new TAP features is possible. (I've hacked on Test::Harness:: Straps; it wasn't the easiest programming task I've ever tackled.)
I added TODO tests to Parrot's test tools a while ago, to make it easier
to distinguish expected test failures from accidental failures.
Test::Harness displays very little information
about TODO tests that passed. In TAP terms, these are bonus tests.
The programmer expected them to fail, but they actually passed, so they
need further investigation.
It would be nice to collect information on skipped, TODO, and bonus
tests in the normal test run. Though I could write a harness via
Test::Harness::Straps, I decided to try
TAP::Parser instead. Here's what I discovered.
Anyone who's interested in grabbing the latest version - which includes the fix you mention - can find it in the Subversion repo here.
|What does the total method signify? I get errors when running your code.|
|@Rahul, at the time I wrote this, the total() method returned the total number of tests run. I haven't kept this code compatible with newer versions of TAP::Harness.|