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->includes
24 $runner->tlib
25 $runner->lib
26 $runner->blib
27 $runner->unsafe_inc
28 $runner->use_fork
29 $runner->preloads
30 $runner->preload_threshold
31 $runner->switches
32 $runner->cover
33 $runner->event_timeout
34 $runner->post_exit_timeout
35
36 FROM CONSTRUCTION
37 These attributes are set when the runner is created.
38
39 $path = $runner->dir
40 Path to the working directory.
41
42 $settings = $runner->settings
43 The App::Yath::Settings instance.
44
45 $coderef = $runner->fork_job_callback
46 Callback used to spawn new tests via fork.
47
48 $coderef = $runner->respawn_runner_callback
49 Callback to restart the runner process.
50
51 $bool = $runner->monitor_preloads
52 True if preloads should be watched for changes.
53
54 $int = $runner->jobs_todo
55 A count of total jobs to run. This will always be 0 in a persistent
56 runner.
57
58 OTHER PUBLIC METHODS
59 If a method is not documented here then it is an implementation detail
60 and you should not use it.
61
62 $class = $runner->job_class
63 Class for new test jobs.
64
65 $preload = $runner->preloader
66 Get the Test2::Harness::Runner::Preloader instance.
67
68 $state = $runner->state
69 Get the Test2::Harness::Runner::State instance.
70
71 @list = $runner->all_libs
72 Get all the libs that should be added to @INC by default. Note that
73 specific runs and even specific tests can have custom paths on top
74 of these.
75
77 The source code repository for Test2-Harness can be found at
78 http://github.com/Test-More/Test2-Harness/.
79
81 Chad Granum <exodist@cpan.org>
82
84 Chad Granum <exodist@cpan.org>
85
87 Copyright 2020 Chad Granum <exodist7@gmail.com>.
88
89 This program is free software; you can redistribute it and/or modify it
90 under the same terms as Perl itself.
91
92 See http://dev.perl.org/licenses/
93
94
95
96perl v5.34.1 2022-07-11 Test2::Harness::Runner(3)