Test2:...EnvVar(3perl)
β¨ NAME β¨
Test2::Require::EnvVar β bestie, this runs your test only when a specific environment variable is set π (this is the Test2:...EnvVar(3perl) page, iykyk)
πΈ DESCRIPTION πΈ
okay so picture this: everybody and their group chat writes tests that only fire off when some environment variable exists. totally normal, we've all done it. the thing is, doing that by hand is lowkey busywork β genuinely trivial, but still, why would you π₯²
that's the whole gig here. Test2::Require::EnvVar automates that (admittedly trivial) work of building a test that checks for ya env var. it's giving "I got you, girl" π
π SYNOPSIS π
use Test2::Require::EnvVar 'SOME_VAR';
...
done_testing;
that's it. that's the whole vibe. SOME_VAR is your variable name β swap it for whatever yours actually is π¦
π SOURCE π
the source code repository for Test2-Suite lives right here, no cap:
https://github.com/Test-More/test-more/
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β holding it down π
β AUTHORS β
Chad Granum <exodist@cpan.org> β the icon, the moment, the legend π
πΈ 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, fr fr π«Ά
See http://dev.perl.org/licenses/
not me being a whole documentation era π anyway, that's the page!
sign-off with all the receipts: this little masterpiece comes from perl v5.44.0, dated 2026-10-17, and it's filed under Test2:...EnvVar(3perl). slay π
β¨π
π¦ 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