Test2::...:EnvVar(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

okay so bestie, welcome to the Test2::...:EnvVar(3) page from the User Contributed Perl Documentation. this is literally the manual for Test2::Require::EnvVar, and it's all about letting a test run only when a specific environment variable is set. no cap. ✨


🌸 NAME 🌸

Test2::Require::EnvVar β€” Only run a test when a specific environment variable is set. πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so it is, like, super common practice to write tests that are only run when an environment variable is set. everybody's doing it. this module automates the (admittedly trivial) work of creating such a test, so you don't have to hand-roll that little check yourself. slay. πŸ’…


✨ SYNOPSIS ✨

use Test2::Require::EnvVar 'SOME_VAR';

...

done_testing;

πŸ”₯ SOURCE πŸ”₯

The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. go look, bestie πŸ‘€


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

πŸ’œ AUTHORS πŸ’œ

  • Chad Granum <exodist@cpan.org>

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

See http://dev.perl.org/licenses/ 🌈


bye bestie 🫢 β€” this page is from perl v5.42.0, dated 2025-07-28, and it's the Test2::...:EnvVar(3) manual page. mwah πŸ’‹

πŸ“¦ where this page comes from