1Test2::Bundle::Simple(3U)ser Contributed Perl DocumentatiToenst2::Bundle::Simple(3)
2
3
4
6 Test2::Bundle::Simple - ALMOST a drop-in replacement for Test::Simple.
7
9 This bundle is intended to be a (mostly) drop-in replacement for
10 Test::Simple. See "KEY DIFFERENCES FROM Test::Simple" for details.
11
13 use Test2::Bundle::Simple;
14
15 ok(1, "pass");
16
17 done_testing;
18
20 This loads Test2::Plugin::ExitSummary.
21
23 These are all from Test2::Tools::Basic.
24
25 ok($bool, $name)
26 Run a test. If bool is true, the test passes. If bool is false, it
27 fails.
28
29 plan($count)
30 Tell the system how many tests to expect.
31
32 skip_all($reason)
33 Tell the system to skip all the tests (this will exit the script).
34
35 done_testing();
36 Tell the system that all tests are complete. You can use this
37 instead of setting a plan.
38
40 You cannot plan at import.
41 THIS WILL NOT WORK:
42
43 use Test2::Bundle::Simple tests => 5;
44
45 Instead you must plan in a separate statement:
46
47 use Test2::Bundle::Simple;
48 plan 5;
49
50 You have three subs imported for use in planning
51 Use "plan($count)", "skip_all($reason)", or "done_testing()" for
52 your planning.
53
55 The source code repository for Test2-Suite can be found at
56 https://github.com/Test-More/Test2-Suite/.
57
59 Chad Granum <exodist@cpan.org>
60
62 Chad Granum <exodist@cpan.org>
63
65 Copyright 2018 Chad Granum <exodist@cpan.org>.
66
67 This program is free software; you can redistribute it and/or modify it
68 under the same terms as Perl itself.
69
70 See http://dev.perl.org/licenses/
71
72
73
74perl v5.30.1 2020-01-31 Test2::Bundle::Simple(3)