TAP::Harness::Env(3perl) | Perl Programmers Reference Guide | TAP::Harness::Env(3perl) |
TAP::Harness::Env - Parsing harness related environmental variables where appropriate
Version 3.44
my $harness = TAP::Harness::Env->create(\%extra_args)
This module implements the environmental variables that Test::Harness uses with TAP::Harness, and instantiates the appropriate class with the appropriate arguments.
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 accepts "harness_class" (which defaults to "TAP::Harness"), and any argument the harness class accepts.
For example, "HARNESS_PERL_SWITCHES=-T" will turn on taint mode. "HARNESS_PERL_SWITCHES=-MDevel::Cover" will run "Devel::Cover" for each test.
Multiple options may be separated by colons:
HARNESS_OPTIONS=j9:c make test
2023-11-25 | perl v5.36.0 |