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