Test2::Harness::Result - Representation of a complete test
This object is used to represent a complete test.
Get the filename of the running test.
Get the name of the file.
Get the job id.
Number of events that have incremented the test count.
Number of failures/errors seen.
Timestamp from object creation.
Timestamp from when the test stopped.
If the test is complete this will have the exit code. This is undefined while the test is running.
Get a list of all plans encountered. If this has more than 1 plan an error will be rendered and the test will be considered a failure.
Get a list of all events that are involved in planning. This includes all plan events, and all events that increment the test count.
Get a list of plan errors (IE Plan and test count do not match).
Get a list of all the events that were seen.
End the test, and provide the exit code.
Check if the result is a pass.
Check if the result is for a process that ran any tests at all.
Add to the number of failures.
Used to add and process one or more events.
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
Copyright 2016 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.