TAP::Formatter::JUnit::Session - Harness output delegate for JUnit output
TAP::Formatter::JUnit::Session provides JUnit output formatting for TAP::Harness.
TAP::Formatter::JUnit::Session
TAP::Harness
Over-ridden private initializer, so we can accept a new "passing_todo_ok" argument at instantiation time.
Called by the harness for each line of TAP it receives.
Internally, all of the TAP is added to a queue until we hit the start of the "next" test (at which point we flush the queue. This allows us to capture any error output or diagnostic info that comes after a test failure.
Called to close the test session.
Flushes the queue if we've got anything left in it, dumps the JUnit to disk (if necessary), and adds the XML for this test suite to our formatter.
Dumps the JUnit for the given XML $testsuite, to the directory specified by PERL_TEST_HARNESS_DUMP_TAP.
$testsuite
PERL_TEST_HARNESS_DUMP_TAP
Adds an XML test $case to the list of testcases we've run in this session.
$case
Returns a new XML::Generator to generate XML output. This is simply a shortcut to $self->formatter->xml().
XML::Generator
$self->formatter->xml()
Graham TerMarsch <cpan@howlingfrog.com>
Copyright 2008-2010, Graham TerMarsch. All Rights Reserved.
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
TAP::Formatter::JUnit.
To install TAP::Formatter::JUnit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAP::Formatter::JUnit
CPAN shell
perl -MCPAN -e shell install TAP::Formatter::JUnit
For more information on module installation, please visit the detailed CPAN module installation guide.