1Test2::Require::EnvVar(U3s)er Contributed Perl DocumentatTieosnt2::Require::EnvVar(3)
2
3
4
6 Test2::Require::EnvVar - Only run a test when a specific environment
7 variable is set.
8
10 It is common practice to write tests that are only run when an
11 environment variable is set. This module automates the (admittedly
12 trivial) work of creating such a test.
13
15 use Test2::Require::EnvVar 'SOME_VAR';
16
17 ...
18
19 done_testing;
20
22 The source code repository for Test2-Suite can be found at
23 https://github.com/Test-More/Test2-Suite/.
24
26 Chad Granum <exodist@cpan.org>
27
29 Chad Granum <exodist@cpan.org>
30
32 Copyright 2018 Chad Granum <exodist@cpan.org>.
33
34 This program is free software; you can redistribute it and/or modify it
35 under the same terms as Perl itself.
36
37 See http://dev.perl.org/licenses/
38
39
40
41perl v5.34.0 2022-03-08 Test2::Require::EnvVar(3)