TAP::Formatter::JUnitHarness output delegate for JUnit output | |
Download |
TAP::Formatter::JUnit Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Graham TerMarsch
- Publisher web site:
- http://search.cpan.org/~gtermars/
TAP::Formatter::JUnit Tags
TAP::Formatter::JUnit Description
Harness output delegate for JUnit output TAP::Formatter::JUnit is a Perl module that provides JUnit output formatting for TAP::Harness.By default (e.g. when run with prove), the entire test suite is gathered together into a single JUnit XML document, which is then displayed on STDOUT. You can, however, have individual JUnit XML files dumped for each individual test, by setting c to a directory that you would like the JUnit XML dumped to. Note, that this will also cause TAP::Harness to dump the original TAP output into that directory as well (but IMHO that's ok as you've now got the data in two parsable formats).Timing information is included in the JUnit XML, if you specified --timer when you ran prove.In standard use, "passing TODOs" are treated as failure conditions (and are reported as such in the generated JUnit). If you wish to treat these as a "pass" and not a "fail" condition, setting ALLOW_PASSING_TODOS in your environment will turn these into pass conditions.The JUnit output generated is partial to being grokked by Hudson (http://hudson.dev.java.net/). That's the build tool I'm using at the moment and needed to be able to generate JUnit output for.SYNOPSISOn the command line, with prove: prove --formatter TAP::Formatter::JUnit ...Or, in your own scripts: use TAP::Harness; my $harness = TAP::Harness->new( { formatter_class => 'TAP::Formatter::JUnit', merge => 1, } ); $harness->runtests(@tests); Requirements: · Perl
TAP::Formatter::JUnit Related Software