TAP::Harness::Env - Parsing harness related environmental variables where appropriate |
TAP::Harness::Env - Parsing harness related environmental variables where appropriate
Version 3.42
my $harness = TAP::Harness::Env->create(\%extra_args)
This module implements the environmental variables that the Test::Harness manpage uses with TAP::Harness, and instantiates the appropriate class with the appropriate arguments.
%extra_args
, these will override the environmental defaults. In accepts harness_class
(which defaults to TAP::Harness
), and any argument the harness class accepts.
HARNESS_PERL_SWITCHES
For example, HARNESS_PERL_SWITCHES=-T
will turn on taint mode.
HARNESS_PERL_SWITCHES=-MDevel::Cover
will run Devel::Cover
for
each test.
HARNESS_VERBOSE
TAP::Harness
will output the verbose results of running
its tests.
HARNESS_SUBCLASS
HARNESS_OPTIONS
j<n>
c
a<file.tgz>
file.tgz
fPackage-With-Dashes
HARNESS_OPTIONS
is seperated by :
, we use -
instead.
Multiple options may be separated by colons:
HARNESS_OPTIONS=j9:c make test
HARNESS_TIMER
--timer
switch.
HARNESS_COLOR
HARNESS_IGNORE_EXIT
TAP::Parser
to ignore exit and wait
status from test scripts.
TAP::Harness::Env - Parsing harness related environmental variables where appropriate |