NAME
Test::Run::Obj::TestObj - results of a single test script.
FIELDS
$self->bonus()
Number of TODO tests that unexpectedly passed.
$self->failed()
Returns an array reference containing list of test numbers that failed.
$self->ok()
Number of tests that passed.
$self->next()
The next expected event.
$self->max()
The number of plannedt tests.
$self->skipped()
The number of skipped tests.
$self->skip_all()
This field will contain the reason for why the entire test script was skipped, in cases when it was.
$self->skip_reason()
The skip reason for the last skipped test that specified such a reason.
BUILD
For Moose.
$self->add_to_failed(@failures)
Add failures to the failed() slot.
$self->get_reason()
Gets the reason or defaults to the default.
$self->num_failed()
Returns the number of failed tests.
$self->calc_percent()
Calculates the percent of failed tests.
$self->add_next_to_failed()
Adds the tests from ->next() to ->max() to the list of failed tests.
$self->is_failed_and_max()
Returns if there are failed tests and the maximal test number was set.
$self->skipped_or_bonus()
Returns whether the test file is either skipped() or bonus().
$self->all_succesful()
A predicate that calculates if all the tests in the TestObj were successful.
$self->get_dubious_summary_main_obj_method()
Returns the method name of the main object that should be propagated based on the success/failure status of this test object.
$self->get_failed_obj_params
Returns a key value array ref of params for initializing the failed-object.
$self->list_tests_as_failures($last_test_results->details())
Lists the tests as failures where appropriate.
SEE ALSO
Test::Run::Base::Struct, Test::Run::Obj, Test::Run::Core
LICENSE
This file is freely distributable under the MIT X11 license.
http://www.opensource.org/licenses/mit-license.php
AUTHOR
Shlomi Fish, http://www.shlomifish.org/.