Test2::Harness::Runner::Job - Representation of a test job.
This module takes all the data from a test file queue item, a run, and runner settings, and mashes them together to figure out what is actually needed to run a job.
Note, this object subclasses Test2::Harness::IPC::Process.
Get the arguments for the test either formt he queue item, or from the run.
Path to the events-file used in case of a bail-out
True if the test job bailed out.
Process category, always 'job' unless overriden in a subclass.
If this job first requires a change in directory before running, this will return the path.
List of includes for a command line launch of this job.
List of options for a command line launch of this job.
Get environment variables to set when launching this job.
File to which all STDOUT for the job will be written.
File to which all STDERR for the job will be written.
File to which event timeout notifications will be written.
File to which post exit timeout events will be written.
Directory to which Test2::Formatter::Stream events will be written.
Event timeout specification, if any, first from test queue item, then from runner.
Post exit timeout specification, if any, first from test queue item, then from runner.
Use Test2::Plugin::UUID inside the test.
Test file the job will be running.
If the job is to be launched via fork, use this callback.
File containing STDIN to be provided to the test.
Paths to add to @INC for the test.
True if Test2::Plugin::IOEvents should be used.
This starts at 0 and will be incremented for every retry of the job.
Temporary directory housing all files related to this job when it runs.
UUID for this job.
Modules to load when starting this job.
Modules to load and import when starting this job.
True if the Test2::Plugin::MemUsage plugin should be used.
Usually the same as rel_file, but you can specify an alternative file to actually run.
Relative path to the file.
How many times the test should be retried if it fails.
True if the test should be retried in isolation if it fails.
The Test2::Harness::Runner::Run instance.
Path to the temporary directory housing all the data about the run.
The Test2::Harness::Runner instance.
Search path includes provided directly by the runner.
The Test2::Harness::Settings instance.
True if the test is a priority smoke test.
Parameters for run_cmd() in Test2::Harness::Util::IPC when launching this job.
run_cmd()
Command line switches for perl when running this test.
Task data from the queue.
Temp dir created specifically for this job.
True if '.' should be added to @INC.
@INC
True if this job should be launched via fork.
True if this job should use Test2::Formatter::Stream.
True if this job should timeout due to lack of activity.
True if the -w switch should be used for this test.
-w
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
Copyright 2020 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
To install Test2::Harness, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2::Harness
CPAN shell
perl -MCPAN -e shell install Test2::Harness
For more information on module installation, please visit the detailed CPAN module installation guide.