1Test::Unit::Runner::XMLU(s3e)r Contributed Perl DocumentaTteisotn::Unit::Runner::XML(3)
2
3
4
6 Test::Unit::Runner::XML - Generate XML reports from unit test results
7
9 use Test::Unit::Runner::XML;
10
11 mkdir("test_reports");
12 my $runner = Test::Unit::Runner::XML->new("test-reports");
13 $runner->start($test);
14 exit(!$runner->all_tests_passed());
15
17 Test::Unit::Runner::XML generates XML reports from unit test results.
18 The reports are in the same format as those produced by Ant's JUnit
19 task, allowing them to be used with Java continuous integration and
20 reporting tools.
21
23 Test::Unit::Runner::XML->new($directory)
24
25 Construct a new runner that will write XML reports into $directory
26
28 start
29 $runner->start($test);
30
31 Run the Test::Unit::Test $test and generate XML reports from the
32 results.
33
34 all_tests_passed
35 exit(!$runner->all_tests_passed());
36
37 Return true if all tests executed by $runner since it was constructed
38 passed.
39
41 Copyright (c) 2004 Andrew Eland, <andrew@andreweland.org>.
42
43 All rights reserved. This program is free software; you can
44 redistribute it and/or modify it under the same terms as Perl itself.
45
47 • Test::Unit
48
49 • Test::Unit::TestRunner
50
51 • The Ant JUnit task, http://ant.apache.org/
52
54 Hey! The above document had some coding errors, which are explained
55 below:
56
57 Around line 186:
58 =over without closing =back
59
60
61
62perl v5.34.0 2021-07-23 Test::Unit::Runner::XML(3)