1Test::Stream::Bundle::CUlsaesrsiCco(n3t)ributed Perl DocTuemsetn:t:aSttiroenam::Bundle::Classic(3)
2
3
4
6 Test::Stream::Bundle::Classic - Bundle that emulates most of
7 Test::More.
8
10 This distribution is deprecated in favor of Test2, Test2::Suite, and
11 Test2::Workflow.
12
13 See Test::Stream::Manual::ToTest2 for a conversion guide.
14
17 Note: Only the most common functions are listed here. Please see
18 individual plugins for their functions.
19
20 use Test::Stream '-Classic';
21
22 ok(1, "This is a pass");
23 ok(0, "This is a fail");
24
25 is($foo, $bar, "These are the same using string comparison");
26
27 like($foo, qr/x/, "This string matches this pattern");
28
29 is_deeply({a => $foo}, {a => $foo}, "deep comparison");
30
31 done_testing;
32
34 Classic => ['is', 'isnt', like', 'unlike', 'is_deeply']
35 This provides the "is()" and "is_deeply()" functions. These
36 versions of the function behave much like the Test::Stream
37 implementations, but with more diagnostics. These both use the "eq"
38 operator when comparing scalar values.
39
40 See Test::Stream::Plugin::Classic for more details.
41
42 Compare => ['like']
43 This provides "like()". This can also provide other tools to make
44 deep comparisons easier, but they are not imported by default.
45
46 See Test::Stream::Plugin::Compare for more details.
47
48 Core
49 This provides essential tools such as "ok()", "done_testing()", as
50 well as others.
51
52 See Test::Stream::Plugin::Core for more details.
53
54 ExitSummary
55 This provides extra diagnostics at the end of failing tests.
56
57 See Test::Stream::Plugin::ExitSummary for more details.
58
59 IPC This loads IPC support so that threading and forking just work.
60
61 See Test::Stream::Plugin::IPC for more details.
62
63 TAP This sets TAP to be the default output format.
64
65 See Test::Stream::Plugin::TAP for more details.
66
67 Subtest
68 This adds the "subtest($name, sub { ... })" function. The output of
69 this one is a little different from Test::More as it is buffered,
70 that is doesn't gt rendered until the subtest is done. This is
71 important for concurrency support.
72
73 You can get the old style subtests this way:
74
75 use Test::Stream -Classic, Subtest => ['streamed'];
76
78 The source code repository for Test::Stream can be found at
79 http://github.com/Test-More/Test-Stream/.
80
82 Chad Granum <exodist@cpan.org>
83
85 Chad Granum <exodist@cpan.org>
86
88 Copyright 2015 Chad Granum <exodist7@gmail.com>.
89
90 This program is free software; you can redistribute it and/or modify it
91 under the same terms as Perl itself.
92
93 See http://dev.perl.org/licenses/
94
95
96
97perl v5.30.0 2019-07-26 Test::Stream::Bundle::Classic(3)