1Test::Stream::Plugin::AUustehrorCToensttr(i3b)uted PerlTDeosctu:m:eSnttraetaimo:n:Plugin::AuthorTest(3)
2
3
4
6 Test::Stream::Plugin::AuthorTest - Only run a test when AUTHOR_TESTING
7 is true.
8
10 This distribution is deprecated in favor of Test2, Test2::Suite, and
11 Test2::Workflow.
12
13 See Test::Stream::Manual::ToTest2 for a conversion guide.
14
16 It is common practice to write tests that are only run when the
17 AUTHOR_TESTING, or similar environment variable is set. This module
18 automates the (admitedly trivial) work of creating such a test.
19
21 use Test::Stream qw/... AuthorTest/;
22
23 ...
24
25 done_testing;
26
27 Or directly:
28
29 use Test::Stream::Plugin::AuthorTest;
30
31 You can also specify a variable name to use instead of AUTHOR_TESTING
32
33 use Test::Stream AuthorTest => ['THE_VAR'];
34
35 or
36
37 use Test::Stream::Plugin::AuthorTest qw/THE_VAR/;
38
40 Test::Stream::Manual is a good place to start when searching for
41 documentation.
42
44 The source code repository for Test::Stream can be found at
45 http://github.com/Test-More/Test-Stream/.
46
48 Chad Granum <exodist@cpan.org>
49
51 Chad Granum <exodist@cpan.org>
52
54 Copyright 2015 Chad Granum <exodist7@gmail.com>.
55
56 This program is free software; you can redistribute it and/or modify it
57 under the same terms as Perl itself.
58
59 See http://dev.perl.org/licenses/
60
61
62
63perl v5.36.0 2023-01-20Test::Stream::Plugin::AuthorTest(3)