1Test2::Bundle::Simple(3U)ser Contributed Perl DocumentatiToenst2::Bundle::Simple(3)
2
3
4

NAME

6       Test2::Bundle::Simple - ALMOST a drop-in replacement for Test::Simple.
7

DESCRIPTION

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

SYNOPSIS

13           use Test2::Bundle::Simple;
14
15           ok(1, "pass");
16
17           done_testing;
18

PLUGINS

20       This loads Test2::Plugin::ExitSummary.
21

TOOLS

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

KEY DIFFERENCES FROM Test::Simple

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

SOURCE

55       The source code repository for Test2-Suite can be found at
56       https://github.com/Test-More/Test2-Suite/.
57

MAINTAINERS

59       Chad Granum <exodist@cpan.org>
60

AUTHORS

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.28.1                      2018-12-04          Test2::Bundle::Simple(3)
Impressum