TAP::Harness::Env
NAME
TAP::Harness::Env - Parsing harness related environmental variables where appropriate
VERSION
Version 3.36
SYNOPSIS
- my $harness = TAP::Harness::Env->create(\%extra_args)
DESCRIPTION
This module implements the environmental variables that Test::Harness uses with TAP::Harness, and instantiates the appropriate class with the appropriate arguments.
METHODS
- create( \%args )
This function reads the environment and generates an appropriate argument hash from it. If given any arguments in
%extra_args, these will override the environmental defaults. In acceptsharness_class(which defaults toTAP::Harness), and any argument the harness class accepts.
ENVIRONMENTAL VARIABLES
HARNESS_PERL_SWITCHESSetting this adds perl command line switches to each test file run.
For example,
HARNESS_PERL_SWITCHES=-Twill turn on taint mode.HARNESS_PERL_SWITCHES=-MDevel::Coverwill runDevel::Coverfor each test.HARNESS_VERBOSEIf true,
TAP::Harnesswill output the verbose results of running its tests.HARNESS_SUBCLASSSpecifies a TAP::Harness subclass to be used in place of TAP::Harness.
HARNESS_OPTIONSProvide additional options to the harness. Currently supported options are:
j<n>Run <n> (default 9) parallel jobs.
cTry to color output. See new in TAP::Formatter::Base.
a<file.tgz>Will use TAP::Harness::Archive as the harness class, and save the TAP to
file.tgzfPackage-With-DashesSet the formatter_class of the harness being run. Since the
HARNESS_OPTIONSis seperated by:, we use-instead.
Multiple options may be separated by colons:
- HARNESS_OPTIONS=j9:c make test
HARNESS_TIMERSetting this to true will make the harness display the number of milliseconds each test took. You can also use prove's
--timerswitch.HARNESS_COLORAttempt to produce color output.
HARNESS_IGNORE_EXITIf set to a true value instruct
TAP::Parserto ignore exit and wait status from test scripts.