Test::Unit::Runner::XML - Generate XML reports from unit test results


Test-Unit-Runner-Xml documentation  | view source Contained in the Test-Unit-Runner-Xml distribution.

Index


NAME

Top

Test::Unit::Runner::XML - Generate XML reports from unit test results

SYNOPSIS

Top

    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());

DESCRIPTION

Top

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.

CONSTRUCTOR

Top

    Test::Unit::Runner::XML->new($directory)

Construct a new runner that will write XML reports into $directory

METHODS

Top

start

    $runner->start($test);

Run the Test::Unit::Test $test and generate XML reports from the results.

all_tests_passed

    exit(!$runner->all_tests_passed());

Return true if all tests executed by $runner since it was constructed passed.

AUTHOR

Top

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.

SEE ALSO

Top


Test-Unit-Runner-Xml documentation  | view source Contained in the Test-Unit-Runner-Xml distribution.