Test2::Harness::Renderer - Base class for Test2::Harness event renderers.
These are set at construction time and cannot be changed.
Get the Test2::Harness::Settings reference.
Get the verbosity level.
True if progress indicators should be shown.
True if color should be used.
Called for every event. Return is ignored.
Called once after testing is done.
%ARGS:
%ARGS
Called when the rendering process receives a signal. This is your chance to do any cleanup or report the signal. This is not an event, you can ignore it. Do not exit or throw any exceptions here please.
True if tests passed.
Number of test files seen.
Number of assertions made.
The final_data looks like this, note that some data may not be present if it is not applicable. The data structure can be as simple as { pass => $bool }.
{ pass => $bool }
{ pass => $pass, # boolean, did the test run pass or fail? failed => [ # Jobs that failed, and did not pass on a retry [$job_id1, $file1], # Failing job 1 [$job_id2, $file2], # Failing job 2 ... ], retried => [ # Jobs that failed and were retried [$job_id1, $times_run1, $file1, $passed_eventually1], # Passed_eventually is a boolean [$job_id2, $times_run2, $file2, $passed_eventually2], ... ], hatled => [ # Jobs that caused the entire test suite to halt [$job_id1, $file1, $halt_reason1], # halt_reason is a human readible string [$job_id2, $file2, $halt_reason2], ], }
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
Copyright 2020 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
To install Test2::Harness, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2::Harness
CPAN shell
perl -MCPAN -e shell install Test2::Harness
For more information on module installation, please visit the detailed CPAN module installation guide.