TAP::Harness::Env(3pm)
πΈ TAP::Harness::Env(3pm) πΈ
okay bestie, welcome to TAP::Harness::Env(3pm) from the Perl Programmers Reference Guide β it's giving environment-variable parser for your harness, and yes it's iconic for that. β¨
π NAME π
TAP::Harness::Env β parsing harness related environmental variables where appropriate π
π VERSION π
Version 3.50 π«Ά
π¦ 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. No cap: it's the little env-var matchmaker. π
π 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. It accepts"harness_class"(which defaults to"TAP::Harness"), and any argument the harness class accepts. Slay. π
β¨ ENVIRONMENTAL VARIABLES β¨
HARNESS_PERL_SWITCHESβ setting 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_VERBOSEβ if true,TAP::Harnesswill output the verbose results of running its tests. πHARNESS_SUBCLASSβ specifies aTAP::Harnesssubclass to be used in place ofTAP::Harness. π§HARNESS_OPTIONSβ provide additional options to the harness. Currently supported options are:j<n>β run<n>(default9) parallel jobs. β‘cβ try to color output. See"new" in TAP::Formatter::Base. π¨a<file.tgz>β will useTAP::Harness::Archiveas the harness class, and save the TAP tofile.tgz. π¦fPackage-With-Dashesβ set theformatter_classof the harness being run. SinceHARNESS_OPTIONSis separated by:, we use-instead. π
Multiple options may be separated by colons:
HARNESS_OPTIONS=j9:c make test
HARNESS_TIMERβ setting this to true will make the harness display the number of milliseconds each test took. You can also use prove's--timerswitch. β±οΈHARNESS_COLORβ attempt to produce color output. πHARNESS_IGNORE_EXITβ if set to a true value instructTAP::Parserto ignore exit and wait status from test scripts. π
okay that's the whole vibe check π
β this page came from perl v5.42.3, dated 2026-11-03, and it's TAP::Harness::Env(3pm) signing off π«Άβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms