1Test2::Harness::RendereUrs(e3r)Contributed Perl DocumentTaetsito2n::Harness::Renderer(3)
2
3
4

NAME

6       Test2::Harness::Renderer - Base class for Test2::Harness event
7       renderers.
8

DESCRIPTION

ATTRIBUTES

11       These are set at construction time and cannot be changed.
12
13       $settings = $renderer->settings
14           Get the Test2::Harness::Settings reference.
15
16       $int = $renderer->verbose
17           Get the verbosity level.
18
19       $bool = $renderer->progress
20           True if progress indicators should be shown.
21
22       $bool = $renderer->color
23           True if color should be used.
24

METHODS

26       $renderer->render_event($event)
27           Called for every event. Return is ignored.
28
29       $renderer->finish(%ARGS)
30           Called once after testing is done.
31
32           %ARGS:
33
34           settings => $settings
35               Get the Test2::Harness::Settings reference.
36
37           pass => $bool
38               True if tests passed.
39
40           tests_seen => $int
41               Number of test files seen.
42
43           asserts_seen => $int
44               Number of assertions made.
45
46           final_data => $final_data
47               The final_data looks like this, note that some data may not be
48               present if it is not applicable. The data structure can be as
49               simple as "{ pass => $bool }".
50
51                   {
52                       pass => $pass,    # boolean, did the test run pass or fail?
53
54                       failed => [       # Jobs that failed, and did not pass on a retry
55                           [$job_id1, $file1],    # Failing job 1
56                           [$job_id2, $file2],    # Failing job 2
57                           ...
58                       ],
59                       retried => [               # Jobs that failed and were retried
60                           [$job_id1, $times_run1, $file1, $passed_eventually1],    # Passed_eventually is a boolean
61                           [$job_id2, $times_run2, $file2, $passed_eventually2],
62                           ...
63                       ],
64                       hatled => [                                                  # Jobs that caused the entire test suite to halt
65                           [$job_id1, $file1, $halt_reason1],                       # halt_reason is a human readible string
66                           [$job_id2, $file2, $halt_reason2],
67                       ],
68                   }
69

SOURCE

71       The source code repository for Test2-Harness can be found at
72       http://github.com/Test-More/Test2-Harness/.
73

MAINTAINERS

75       Chad Granum <exodist@cpan.org>
76

AUTHORS

78       Chad Granum <exodist@cpan.org>
79
81       Copyright 2020 Chad Granum <exodist7@gmail.com>.
82
83       This program is free software; you can redistribute it and/or modify it
84       under the same terms as Perl itself.
85
86       See http://dev.perl.org/licenses/
87
88
89
90perl v5.32.0                      2020-07-28       Test2::Harness::Renderer(3)
Impressum