1Test::Stream::Bundle::VU1s(e3r)Contributed Perl DocumentTaetsito:n:Stream::Bundle::V1(3)
2
3
4

NAME

6       Test::Stream::Bundle::V1 - Preferred bundle used by Test::Stream
7       author.
8

DEPRECATED

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

DESCRIPTION

16       This bundle is the one used most in Test::Stream's own test suite. This
17       bundle ties together the most commonly used tools.
18

SYNOPSIS

20       Note: On ly the most critical functions are listed here. Please see
21       individual plugins for their functions.
22
23           use Test::Stream '-V1';
24
25           ok(1, "This is a pass");
26           ok(0, "This is a fail");
27
28           is("x", "x", "These strings are the same");
29           is($A, $B, "These 2 structures match exactly");
30
31           like('x', qr/x/, "This string matches this pattern");
32           like($A, $B, "These structures match where it counts");
33
34           done_testing;
35

INCLUDED TOOLS

37       strict
38           'strict' is turned on for you.
39
40       warnings
41           'warnings' are turned on for you.
42
43       Compare
44           This provides is() and like(). This can also provide other tools to
45           make deep comparisons easier, but they are not imported by default.
46
47           See Test::Stream::Plugin::Compare for more details.
48
49       Context
50           This provides the context() function which is useful in writing new
51           tools, or wrapping existing ones.
52
53           See Test::Stream::Plugin::Context for more details.
54
55       Core
56           This provides essential tools such as ok(), done_testing(), as well
57           as others.
58
59           See Test::Stream::Plugin::Core for more details.
60
61       Exception
62           This provides tools to help you intercept or check for the absence
63           of exceptions. This is very similar to Test::Fatal, in fact
64           Test::Fatal is probably better. If you can, use Test::Fatal, if you
65           cannot then this may suffice. The functions exported do not
66           conflict with the ones exported by Test::Fatal so both can be
67           loaded together.
68
69           See Test::Stream::Plugin::Exception for more details.
70
71       ExitSummary
72           This provides extra diagnostics at the end of failing tests.
73
74           See Test::Stream::Plugin::ExitSummary for more details.
75
76       IPC This loads IPC support so that threading and forking just work.
77
78           See Test::Stream::Plugin::IPC for more details.
79
80       Mock
81           This provides the mock() and mocked() functions which can be used
82           to do nearly any kind of mocking you might need.
83
84           See Test::Stream::Plugin::Mock for more details.
85
86       TAP This sets TAP to be the default output format.
87
88           See Test::Stream::Plugin::TAP for more details.
89
90       UTF8
91           This module turns on the utf8 pragma for your test file, it also
92           sets STDERR, STDOUT and the formatter output handles to use utf8.
93
94           See Test::Stream::Plugin::UTF8 for more details.
95
96       Warnings
97           This plugin provides tools to help intercept warnings.
98
99           See Test::Stream::Plugin::Warnings for more details.
100

SOURCE

102       The source code repository for Test::Stream can be found at
103       http://github.com/Test-More/Test-Stream/.
104

MAINTAINERS

106       Chad Granum <exodist@cpan.org>
107

AUTHORS

109       Chad Granum <exodist@cpan.org>
110
112       Copyright 2015 Chad Granum <exodist7@gmail.com>.
113
114       This program is free software; you can redistribute it and/or modify it
115       under the same terms as Perl itself.
116
117       See http://dev.perl.org/licenses/
118
119
120
121perl v5.38.0                      2023-07-21       Test::Stream::Bundle::V1(3)
Impressum