Test2:...esting(3perl)
π Test2::Require::AutomatedTesting π
okay bestie, real talk β this is the Test2::Require::AutomatedTesting page from the Perl Programmers Reference Guide, third section of the perl manuals. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
Test2::Require::AutomatedTesting β the module that makes your test only run when the AUTOMATED_TESTING environment variable is set. periodt. π
πΈ DESCRIPTION πΈ
so the vibe is: everybody writes tests that should only fire off when AUTOMATED_TESTING is set in the environment. it's a whole thing. it's common practice. it's basically tradition at this point.
and this module? this module does that (admittedly trivial) work for you. like, yes, it's a tiny little job, nobody's pretending it's rocket science π but now you don't have to hand-roll it every single time. iconic behavior, honestly. π
π¦ SYNOPSIS π¦
look how simple this is. not me getting emotional over four lines of code:
use Test2::Require::AutomatedTesting;
...
done_testing;
yeah. that's it. that's the whole thing. slay. β¨
π SOURCE π
the source code repository for Test2-Suite lives right here, bestie, go peek:
https://github.com/Test-More/test-more/
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
shoutout to Chad, holding it down fr fr π«‘
π 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/
and that's the whole page, no cap. every flag-free, option-free, environment-variable-having detail intact π
so this was perl v5.44.0, dated 2026-10-17, and per the perl manual page naming convention, that trailing thing was Test2:...esting(3perl) β mwah, go write some tests that only run when you want them to π§β
π¦ 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