1Test2::Plugin::BailOnFaUisle(r3)Contributed Perl DocumenTteastti2o:n:Plugin::BailOnFail(3)
2
3
4
6 Test2::Plugin::BailOnFail - Automatically bail out of testing on the
7 first test failure.
8
10 This module will issue a bailout event after the first test failure.
11 This will prevent your tests from continuing. The bailout runs when the
12 context is released; that is, it will run when the test function you
13 are using, such as "ok()", returns. This gives the tools the ability to
14 output any extra diagnostics they may need.
15
17 use Test2::V0;
18 use Test2::Plugin::BailOnFail;
19
20 ok(1, "pass");
21 ok(0, "fail");
22 ok(1, "Will not run");
23
25 The source code repository for Test2-Suite can be found at
26 https://github.com/Test-More/Test2-Suite/.
27
29 Chad Granum <exodist@cpan.org>
30
32 Chad Granum <exodist@cpan.org>
33
35 Copyright 2018 Chad Granum <exodist@cpan.org>.
36
37 This program is free software; you can redistribute it and/or modify it
38 under the same terms as Perl itself.
39
40 See http://dev.perl.org/licenses/
41
42
43
44perl v5.34.0 2022-03-08 Test2::Plugin::BailOnFail(3)