Test2::Env(3pm)
Ok bestie, welcome to the Test2::Env(3pm) page from the Perl Programmers Reference Guide β the official little list of environment variables that Test2 either reads or sets. π
β¨
β¨ NAME β¨
Test2::Env β documentation for environment variables used or set by Test2. Thatβs the whole name vibe. π
π¦ DESCRIPTION π¦
This is a list of environment variables that are either set by, or read by Test2. No cap, thatβs the entire mission. π«Ά
π AUTHOR_TESTING π
This env var is read by Test2. When set, Test2 will run tests that are normally skipped unless a module author is doing extra author-specific testing. So itβs like author-mode extra credit. π§ͺβ¨
π€ AUTOMATED_TESTING π€
This env var is read by Test2. When set, it indicates the tests are run by an automated system and no human interaction is possible. Very βrobot hands onlyβ energy. π
See Test2::Require::AuthorTesting.
π EXTENDED_TESTING π
This env var is read by Test2. When set, it indicates some extended testing that should normally be skipped will be run. Basically the extra-boss-level tests are coming out to play. π₯
See Test2::Require::ExtendedTesting.
πͺ HARNESS_ACTIVE πͺ
This env var is read by Test2. It is usually set by prove (Test::Harness) or yath (App::Yath). Harness said βIβm here,β and Test2 said βnoted.β π
π NONINTERACTIVE_TESTING π
This env var is read by Test2. When set, it indicates the testing will not be interactive. No hands-on keyboard chaos, just automated vibes. πΈ
See Test2::Require::NonInteractiveTesting.
π RELEASE_TESTING π
This env var is read by Test2. When set, it indicates that release testing is being done, which may run more tests than normal. Release mode said βmore tests, actually.β π
See Test2::Require::ReleaseTesting.
π T2_FORMATTER π
This can be used to set the formatter that Test2 will use. If set to a string without a + prefix, then Test2::Formatter:: will be added to the start of the module name. If + is present it will be stripped and no further modification will be made to the module name. Custom formatter slay, periodt. β¨
π§ T2_IN_PRELOAD π§
Test2 sets this when preload mode is active. This is mainly used by App::Yath and similar tools that preload Test2, then fork to run tests. Preload-and-fork besties, this oneβs for you. π¦
π TABLE_TERM_SIZE π
This is used to set a terminal width for things like diagnostic message tables. Gotta make those tables fit, fr fr. π
β TEST2_ACTIVE β
Test2 sets this variable when tests are running. Itβs giving βtests are literally happening right now.β π
π TEST2_ENABLE_PLUGINS π
This can be used to force plugins to be loaded when the Test2 API is loaded. It takes a list of one or more plugin names separated by comma. If the module name does not have a + in front of it then the Test2::Plugin:: namespace is assumed and added. If a + is present at the start of a module name it will be stripped and no further modification will be made.
Examples:
TEST2_ENABLE_PLUGINS=BailOnFail
Test2_ENABLE_PLUGINS=SRand,+My::Plugin::Name
π§ͺ TEST_ACTIVE π§ͺ
Set by Test2 when tests are running. Yep, another βtests are activeβ flag β iconic behavior. π
π₯ TS_MAX_DELTA π₯
Used to determine how many max lines of output will be provided when is() finds a deep data structure mismatch. Deep mismatch diagnostics, but make it bounded. π
π¦ SOURCE π¦
The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. Go peek, bestie. π
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
Thatβs the whole Test2::Env(3pm) vibe check, bestie β source/version perl v5.42.3, dated 2026-11-03. Byeee! πβ¨
π¦ 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