1Test::Run::Obj::TestObjU(s3e)r Contributed Perl DocumentaTteisotn::Run::Obj::TestObj(3)
2
3
4
6 Test::Run::Obj::TestObj - results of a single test script.
7
9 $self->bonus()
10 Number of TODO tests that unexpectedly passed.
11
12 $self->failed()
13 Returns an array reference containing list of test numbers that failed.
14
15 $self->ok()
16 Number of tests that passed.
17
18 $self->next()
19 The next expected event.
20
21 $self->max()
22 The number of plannedt tests.
23
24 $self->skipped()
25 The number of skipped tests.
26
27 $self->skip_all()
28 This field will contain the reason for why the entire test script was
29 skipped, in cases when it was.
30
31 $self->skip_reason()
32 The skip reason for the last skipped test that specified such a reason.
33
34 BUILD
35 For Moose.
36
37 $self->add_to_failed(@failures)
38 Add failures to the failed() slot.
39
40 $self->get_reason()
41 Gets the reason or defaults to the default.
42
43 $self->num_failed()
44 Returns the number of failed tests.
45
46 $self->calc_percent()
47 Calculates the percent of failed tests.
48
49 $self->add_next_to_failed()
50 Adds the tests from ->next() to ->max() to the list of failed tests.
51
52 $self->is_failed_and_max()
53 Returns if there are failed tests and the maximal test number was set.
54
55 $self->skipped_or_bonus()
56 Returns whether the test file is either skipped() or bonus().
57
58 $self->all_succesful()
59 A predicate that calculates if all the tests in the TestObj were
60 successful.
61
62 $self->get_dubious_summary_main_obj_method()
63 Returns the method name of the main object that should be propagated
64 based on the success/failure status of this test object.
65
66 $self->get_failed_obj_params
67 Returns a key value array ref of params for initializing the failed-
68 object.
69
70 $self->list_tests_as_failures($last_test_results->details())
71 Lists the tests as failures where appropriate.
72
74 Test::Run::Base::Struct, Test::Run::Obj, Test::Run::Core
75
77 This file is freely distributable under the MIT X11 license.
78
79 <http://www.opensource.org/licenses/mit-license.php>
80
82 Shlomi Fish, <http://www.shlomifish.org/>.
83
84
85
86perl v5.28.0 2018-07-15 Test::Run::Obj::TestObj(3)