Test::Unit::Runner::XML - Generate XML reports from unit test results
use Test::Unit::Runner::XML; mkdir("test_reports"); my $runner = Test::Unit::Runner::XML->new("test-reports"); $runner->start($test); exit(!$runner->all_tests_passed());
Test::Unit::Runner::XML generates XML reports from unit test results. The reports are in the same format as those produced by Ant's JUnit task, allowing them to be used with Java continuous integration and reporting tools.
Test::Unit::Runner::XML->new($directory)
Construct a new runner that will write XML reports into $directory
$runner->start($test);
Run the Test::Unit::Test $test and generate XML reports from the results.
exit(!$runner->all_tests_passed());
Return true if all tests executed by $runner since it was constructed passed.
Copyright (c) 2004 Andrew Eland, <andrew@andreweland.org>.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Test::Unit
Test::Unit::TestRunner
The Ant JUnit task, http://ant.apache.org/
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install Test::Unit::Runner::XML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Unit::Runner::XML
CPAN shell
perl -MCPAN -e shell install Test::Unit::Runner::XML
For more information on module installation, please visit the detailed CPAN module installation guide.