1Test2::Harness::Runner(U3s)er Contributed Perl DocumentatTieosnt2::Harness::Runner(3)
2
3
4
6 Test2::Harness::Runner - Base class for test runners
7
9 This module does the heavy lifting of running all the tests.
10
11 You should never need to create an instance of the runner yourself. In
12 most cases the runner module is exposed via a callback or a plugin
13 affordance.
14
16 FROM SETTINGS
17 These are attributesd with values set from the Test2::Harness::Settings
18 instance created from command line arguments.
19
20 See App::Yath::Options::Runner for the most up to date documentation on
21 these.
22
23 $runner->job_count
24 $runner->includes
25 $runner->tlib
26 $runner->lib
27 $runner->blib
28 $runner->unsafe_inc
29 $runner->use_fork
30 $runner->preloads
31 $runner->preload_threshold
32 $runner->switches
33 $runner->cover
34 $runner->event_timeout
35 $runner->post_exit_timeout
36
37 FROM CONSTRUCTION
38 These attributes are set when the runner is created.
39
40 $path = $runner->dir
41 Path to the working directory.
42
43 $settings = $runner->settings
44 The App::Yath::Settings instance.
45
46 $coderef = $runner->fork_job_callback
47 Callback used to spawn new tests via fork.
48
49 $coderef = $runner->respawn_runner_callback
50 Callback to restart the runner process.
51
52 $bool = $runner->monitor_preloads
53 True if preloads should be watched for changes.
54
55 $int = $runner->jobs_todo
56 A count of total jobs to run. This will always be 0 in a persistent
57 runner.
58
59 OTHER PUBLIC METHODS
60 If a method is not documented here then it is an implementation detail
61 and you should not use it.
62
63 $class = $runner->job_class
64 Class for new test jobs.
65
66 $preload = $runner->preloader
67 Get the Test2::Harness::Runner::Preloader instance.
68
69 $state = $runner->state
70 Get the Test2::Harness::Runner::State instance.
71
72 @list = $runner->all_libs
73 Get all the libs that should be added to @INC by default. Note that
74 specific runs and even specific tests can have custom paths on top
75 of these.
76
78 The source code repository for Test2-Harness can be found at
79 http://github.com/Test-More/Test2-Harness/.
80
82 Chad Granum <exodist@cpan.org>
83
85 Chad Granum <exodist@cpan.org>
86
88 Copyright 2020 Chad Granum <exodist7@gmail.com>.
89
90 This program is free software; you can redistribute it and/or modify it
91 under the same terms as Perl itself.
92
93 See http://dev.perl.org/licenses/
94
95
96
97perl v5.32.1 2021-03-12 Test2::Harness::Runner(3)