GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Test2::Harness::Runner(3) User Contributed Perl Documentation Test2::Harness::Runner(3)

Test2::Harness::Runner - Base class for test runners

This module does the heavy lifting of running all the tests.

You should never need to create an instance of the runner yourself. In most cases the runner module is exposed via a callback or a plugin affordance.

These are attributesd with values set from the Test2::Harness::Settings instance created from command line arguments.

See App::Yath::Options::Runner for the most up to date documentation on these.

$runner->job_count
$runner->includes
$runner->tlib
$runner->lib
$runner->blib
$runner->unsafe_inc
$runner->use_fork
$runner->preloads
$runner->preload_threshold
$runner->switches
$runner->cover
$runner->event_timeout
$runner->post_exit_timeout

These attributes are set when the runner is created.
$path = $runner->dir
Path to the working directory.
$settings = $runner->settings
The App::Yath::Settings instance.
$coderef = $runner->fork_job_callback
Callback used to spawn new tests via fork.
$coderef = $runner->respawn_runner_callback
Callback to restart the runner process.
$bool = $runner->monitor_preloads
True if preloads should be watched for changes.
$int = $runner->jobs_todo
A count of total jobs to run. This will always be 0 in a persistent runner.

If a method is not documented here then it is an implementation detail and you should not use it.
$class = $runner->job_class
Class for new test jobs.
$preload = $runner->preloader
Get the Test2::Harness::Runner::Preloader instance.
$state = $runner->state
Get the Test2::Harness::Runner::State instance.
@list = $runner->all_libs
Get all the libs that should be added to @INC by default. Note that specific runs and even specific tests can have custom paths on top of these.

The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.

Chad Granum <exodist@cpan.org>

Chad Granum <exodist@cpan.org>

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/

2022-03-23 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.