Test2::Harness::Result - Representation of a complete test or subtest.
This object is used to represent a complete test or subtest.
Get the filename of the running test.
Get the name of the file or subtest.
Get the job id.
This will be 0 on the main result for a file. This will be 1 for a top-level subtest, 2 for nested, etc.
Subtest id if this result represents a subtest. The ID is arbitrary and parser-specific.
Subtest id if this result is inside a subtest. The ID is arbitrary and parser-specific.
Number of facts 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 facts that are involved in planning. This includes all plan facts, and all facts 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 facts that were seen.
End the test, and provide the exit code.
Check if the result is a pass.
Add to the number of failures.
Used to add+process facts.
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.