Test2::Env(3pm) Perl Programmers Reference Guide Test2::Env(3pm)

# [NAME](#NAME)

Test2::Env - Documentation for environment variables used or set by Test2.

# [DESCRIPTION](#DESCRIPTION)

This is a list of environment variables that are either set by, or read by Test2.

# [AUTHOR\_TESTING](#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.

# [AUTOMATED\_TESTING](#AUTOMATED_TESTING)

This env var is read by Test2. When set this indicates the tests are run by an automated system and no human interaction is possible.

See Test2::Require::AuthorTesting.

# [EXTENDED\_TESTING](#EXTENDED_TESTING)

This env var is read by Test2. When set it indicates some extended testing that should normally be skipped will be run.

See Test2::Require::ExtendedTesting.

# [HARNESS\_ACTIVE](#HARNESS_ACTIVE)

This env var is read by Test2. It is usually set by "prove" (Test::Harness) or "yath" (App::Yath).

# [NONINTERACTIVE\_TESTING](#NONINTERACTIVE_TESTING)

This env var is read by Test2. When set this indicates the testing will not be interactive.

See Test2::Require::NonInteractiveTesting.

# [RELEASE\_TESTING](#RELEASE_TESTING)

This env var is read by Test2. When set this indicates that release testing is being done, which may run more tests than normal.

See Test2::Require::ReleaseTesting.

# [T2\_FORMATTER](#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.

# [T2\_IN\_PRELOAD](#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.

# [TABLE\_TERM\_SIZE](#TABLE_TERM_SIZE)

This is used to set a terminal width for things like diagnostic message tables.

# [TEST2\_ACTIVE](#TEST2_ACTIVE)

Test2 sets this variable when tests are running.

# [TEST2\_ENABLE\_PLUGINS](#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](#TEST_ACTIVE)

Set by Test2 when tests are running.

# [TS\_MAX\_DELTA](#TS_MAX_DELTA)

Used to determine how many max lines of output will be provided when **is()** finds a deep data structure mismatch.

# [SOURCE](#SOURCE)

The source code repository for Test2-Suite can be found at *https://github.com/Test-More/test-more/*.

# [MAINTAINERS](#MAINTAINERS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad)

# [AUTHORS](#AUTHORS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad~2)

# [COPYRIGHT](#COPYRIGHT)

Copyright Chad Granum &lt;exodist@cpan.org&gt;.

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/*

2026-10-26 perl v5.44.0

---

Document: Test2::Env(3pm) from perl 5.44.0-r3 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
