1TAP::Formatter::JUnit::USseesrsiCoonn(t3r)ibuted Perl DoTcAuPm:e:nFtoartmiaotnter::JUnit::Session(3)
2
3
4

NAME

6       TAP::Formatter::JUnit::Session - Harness output delegate for JUnit
7       output
8

DESCRIPTION

10       "TAP::Formatter::JUnit::Session" provides JUnit output formatting for
11       "TAP::Harness".
12

METHODS

14       _initialize($arg_for)
15           Over-ridden private initializer, so we can accept a new
16           "passing_todo_ok" argument at instantiation time.
17
18       result($result)
19           Called by the harness for each line of TAP it receives.
20
21           Internally, all of the TAP is added to a queue until we hit the
22           start of the "next" test (at which point we flush the queue. This
23           allows us to capture any error output or diagnostic info that comes
24           after a test failure.
25
26       close_test()
27           Called to close the test session.
28
29           Flushes the queue if we've got anything left in it, dumps the JUnit
30           to disk (if necessary), and adds the XML for this test suite to our
31           formatter.
32
33       dump_junit_xml($testsuite)
34           Dumps the JUnit for the given XML $testsuite, to the directory
35           specified by "PERL_TEST_HARNESS_DUMP_TAP".
36
37       add_testcase($case)
38           Adds an XML test $case to the list of testcases we've run in this
39           session.
40
41       xml()
42           Returns a new "XML::Generator" to generate XML output. This is
43           simply a shortcut to "$self->formatter->xml()".
44

AUTHOR

46       Graham TerMarsch <cpan@howlingfrog.com>
47
49       Copyright 2008-2010, Graham TerMarsch.  All Rights Reserved.
50
51       This is free software; you can redistribute it and/or modify it under
52       the same terms as Perl itself.
53

SEE ALSO

55       TAP::Formatter::JUnit.
56
57
58
59perl v5.28.1                      2019-02-02 TAP::Formatter::JUnit::Session(3)
Impressum