1Test2::Plugin::NoWarninUgsse(r3)Contributed Perl DocumenTteastti2o:n:Plugin::NoWarnings(3)
2
3
4
6 Test2::Plugin::NoWarnings - Fail if tests warn
7
9 version 0.06
10
12 use Test2::Bundle::Extended;
13 use Test2::Plugin::NoWarnings;
14
15 ...;
16
18 Loading this plugin causes your tests to fail if there any warnings
19 while they run. Each warning generates a new failing test and the
20 warning content is outputted via "diag".
21
22 This module uses $SIG{__WARN__}, so if the code you're testing sets
23 this, then this module will stop working.
24
26 By default, this module suppresses the warning itself so it does not go
27 to "STDERR". If you'd like to also have the warning go to "STDERR"
28 untouched, you can ask for this with the "echo" import argument:
29
30 use Test2::Plugin::NoWarnings echo => 1;
31
33 Bugs may be submitted at
34 <http://rt.cpan.org/Public/Dist/Display.html?Name=Test2-Plugin-NoWarnings>
35 or via email to bug-test2-plugin-nowarnings@rt.cpan.org <mailto:bug-
36 test2-plugin-nowarnings@rt.cpan.org>.
37
38 I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
39
41 The source code repository for Test2-Plugin-NoWarnings can be found at
42 <https://github.com/houseabsolute/Test2-Plugin-NoWarnings>.
43
45 If you'd like to thank me for the work I've done on this module, please
46 consider making a "donation" to me via PayPal. I spend a lot of free
47 time creating free software, and would appreciate any support you'd
48 care to offer.
49
50 Please note that I am not suggesting that you must do this in order for
51 me to continue working on this particular software. I will continue to
52 do so, inasmuch as I have in the past, for as long as it interests me.
53
54 Similarly, a donation made in this way will probably not make me work
55 on this software much more, unless I get so many donations that I can
56 consider working on free software full time (let's all have a chuckle
57 at that together).
58
59 To donate, log into PayPal and send money to autarch@urth.org, or use
60 the button at <http://www.urth.org/~autarch/fs-donation.html>.
61
63 Dave Rolsky <autarch@urth.org>
64
66 This software is Copyright (c) 2017 by Dave Rolsky.
67
68 This is free software, licensed under:
69
70 The Artistic License 2.0 (GPL Compatible)
71
72 The full text of the license can be found in the LICENSE file included
73 with this distribution.
74
75
76
77perl v5.28.0 2017-06-04 Test2::Plugin::NoWarnings(3)