| App::Prove::State::Result::Test - Individual test results. |
App::Prove::State::Result::Test - Individual test results.
Version 3.48
The prove command supports a --state option that instructs it to store persistent state across runs. This module encapsulates the results for a single test.
# Re-run failed tests
$ prove --state=failed,save -rbv
newnameThe name of the test. Usually a filename.
elapsedThe total elapsed times the test took to run, in seconds from the epoch..
generationThe number for the "generation" of the test run. The first generation is 1 (one) and subsequent generations are 2, 3, etc.
last_pass_timeThe last time the test program passed, in seconds from the epoch.
Returns undef if the program has never passed.
last_fail_timeThe last time the test suite failed, in seconds from the epoch.
Returns undef if the program has never failed.
mtimeReturns the mtime of the test, in seconds from the epoch.
rawReturns a hashref of raw test data, suitable for serialization by YAML.
resultCurrently, whether or not the test suite passed with no 'problems' (such as TODO passed).
run_timeThe total time it took for the test to run, in seconds. If Time::HiRes is available, it will have finer granularity.
num_todoThe number of tests with TODO directives.
sequenceThe order in which this test was run for the given test suite result.
total_passesThe number of times the test has passed.
total_failuresThe number of times the test has failed.
parserThe underlying parser object. This is useful if you need the full information for the test program.
| App::Prove::State::Result::Test - Individual test results. |