1Test2::Plugin::NoWarninUgsse(r3)Contributed Perl DocumenTteastti2o:n:Plugin::NoWarnings(3)
2
3
4

NAME

6       Test2::Plugin::NoWarnings - Fail if tests warn
7

VERSION

9       version 0.09
10

SYNOPSIS

12           use Test2::V0;
13           use Test2::Plugin::NoWarnings;
14
15           ...;
16

DESCRIPTION

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

ECHOING WARNINGS

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

SUPPORT

33       Bugs may be submitted at
34       <https://github.com/houseabsolute/Test2-Plugin-NoWarnings/issues>.
35
36       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
37

SOURCE

39       The source code repository for Test2-Plugin-NoWarnings can be found at
40       <https://github.com/houseabsolute/Test2-Plugin-NoWarnings>.
41

DONATIONS

43       If you'd like to thank me for the work I've done on this module, please
44       consider making a "donation" to me via PayPal. I spend a lot of free
45       time creating free software, and would appreciate any support you'd
46       care to offer.
47
48       Please note that I am not suggesting that you must do this in order for
49       me to continue working on this particular software. I will continue to
50       do so, inasmuch as I have in the past, for as long as it interests me.
51
52       Similarly, a donation made in this way will probably not make me work
53       on this software much more, unless I get so many donations that I can
54       consider working on free software full time (let's all have a chuckle
55       at that together).
56
57       To donate, log into PayPal and send money to autarch@urth.org, or use
58       the button at <https://www.urth.org/fs-donation.html>.
59

AUTHOR

61       Dave Rolsky <autarch@urth.org>
62

CONTRIBUTOR

64       Michael Alan Dorman <mdorman@ironicdesign.com>
65
67       This software is Copyright (c) 2020 by Dave Rolsky.
68
69       This is free software, licensed under:
70
71         The Artistic License 2.0 (GPL Compatible)
72
73       The full text of the license can be found in the LICENSE file included
74       with this distribution.
75
76
77
78perl v5.38.0                      2023-07-21      Test2::Plugin::NoWarnings(3)
Impressum