TAP::HARNESS::ENV(3perl)
π TAP::Harness::Env π
okay bestie, so this is TAP::Harness::Env from the Perl Programmers Reference Guide β it's the little module that reads your environment variables and hands you back a fully-glammed-up harness object. slay β¨
πΈ NAME πΈ
TAP::Harness::Env β parsing harness related environmental variables where appropriate π
like, it reads the env vars and does the right thing. that's the whole vibe. π
β VERSION β
Version 3.52 β periodt, that's the one you're getting. π
π¦ SYNOPSIS π¦
my $harness = TAP::Harness::Env->create(\%extra_args)
that's it. one line. one call. main character energy fr fr. π
β¨ DESCRIPTION β¨
so this module is the one that implements all the environmental variables that Test::Harness uses together with TAP::Harness, and then it instantiates the appropriate class with the appropriate arguments. no cap. it's giving glue code, but make it iconic. π«Ά
π METHODS π
create( \%args )β This function reads the environment and generates an appropriate argument hash from it. If you hand it any arguments in%extra_args, those are gonna override the environmental defaults (yes bestie, your args win, the env could never π). It accepts"harness_class"(which defaults to"TAP::Harness"), and any argument the harness class accepts. π
π ENVIRONMENTAL VARIABLES π
these are the levers you can pull from outside the code. obsessed honestly. π
"HARNESS_PERL_SWITCHES"Setting this adds perl command line switches to each test file run. β¨ For example,"HARNESS_PERL_SWITCHES=-T"will turn on taint mode."HARNESS_PERL_SWITCHES=-MDevel::Cover"will run"Devel::Cover"for each test. lowkey iconic."HARNESS_VERBOSE"If true,"TAP::Harness"will output the verbose results of running its tests. it's giving tell me everything, i wanna know. π"HARNESS_SUBCLASS"Specifies a TAP::Harness subclass to be used in place of TAP::Harness. customisation era fr fr. π¦"HARNESS_OPTIONS"Provide additional options to the harness. Currently supported options are:"j<n>"β Run<n>(default9) parallel jobs. multitasking queen. π₯"c"β Try 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.tgz". π¦"fPackage-With-Dashes"β Set theformatter_classof the harness being run. Since the"HARNESS_OPTIONS"is separated by":", we use"-"instead. iykyk. π
Multiple options may be separated by colons:
HARNESS_OPTIONS=j9:c make test
see? colons. cute little separators. π
"HARNESS_TIMER"Setting this to true will make the harness display the number of milliseconds each test took. You can also use prove's"--timer"switch. β±οΈβ¨"HARNESS_COLOR"Attempt to produce color output. yesss make it pretty. ππ"HARNESS_IGNORE_EXIT"If set to a true value, instruct"TAP::Parser"to ignore exit and wait status from test scripts. like, we simply are not looking at that. π
and that's the whole page bestie!! π«Ά this was perl v5.44.0, dated 2026-10-17, and it's the TAP::Harness::Env(3perl) page β go forth and configure your harness, you absolute legend. ππβ¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms