1Test::Stream::Bundle::TUessetrerC(o3n)tributed Perl DocuTmeesntt:a:tSitorneam::Bundle::Tester(3)
2
3
4
6 Test::Stream::Bundle::Tester - Bundle for testing test tools.
7
9 This distribution is deprecated in favor of Test2, Test2::Suite, and
10 Test2::Workflow.
11
12 See Test::Stream::Manual::ToTest2 for a conversion guide.
13
15 Plugins that are useful when testing test tools and plugins. This
16 includes tools for intercepting and validating events, as well as all
17 the exports provided by the Compare plugin.
18
20 use Test::Stream Core, -Tester;
21
22 is(
23 intercept { ok(1, "pass") },
24 array {
25 event Ok => sub {
26 call pass => T();
27 call name => 'pass';
28 };
29 end;
30 },
31 "Intercepted an event"
32 );
33
34 done_testing;
35
37 Test::Stream::Plugin::Compare
38 Unlike the default bundle, every tool exported by the Compare plugin is
39 imported.
40
41 Test::Stream::Plugin::Intercept
42 Provides the "intercept { ... }" function, this is used to intercept
43 events.
44
45 Test::Stream::Plugin::Grab
46 An alternative way to intercept events, this one does not add stack
47 frames.
48
49 Test::Stream::Plugin::LoadPlugin
50 Allows you to dynamically load plugins as needed.
51
52 Test::Stream::Plugin::Context
53 Provides the "context()" function.
54
56 The source code repository for Test::Stream can be found at
57 http://github.com/Test-More/Test-Stream/.
58
60 Chad Granum <exodist@cpan.org>
61
63 Chad Granum <exodist@cpan.org>
64
66 Copyright 2015 Chad Granum <exodist7@gmail.com>.
67
68 This program is free software; you can redistribute it and/or modify it
69 under the same terms as Perl itself.
70
71 See http://dev.perl.org/licenses/
72
73
74
75perl v5.28.0 2016-02-05 Test::Stream::Bundle::Tester(3)