Test2::Hub::State - Representation of the state of the testing
This is an experimental release. Using this right now is not recommended.
Get the number of tests that have been run.
Get the number of failures (Not all failures come from a test fail, so this number can be larger than the count).
True if the state has ended. This MAY return the stack frame of the tool that ended the test, but that is not guarenteed.
Check if the overall state is a failure. Can also be used to set the pass/fail status.
Increase the test count by one, $bool should be true if the new test passed, false if it failed.
$bool
Increase the failure count, and set is_passing to false.
Get or set the plan. The plan must be an integer larger than 0, the string 'no_plan', or the string 'skip_all'.
This is used to finalize the state, no changes should be made to the state after this is set.
The source code repository for Test2 can be found at http://github.com/Test-More/Test2/.
Copyright 2015 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, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2
CPAN shell
perl -MCPAN -e shell install Test2
For more information on module installation, please visit the detailed CPAN module installation guide.