1Test::Stream::Plugin::DUesfeerr(C3o)ntributed Perl DocumTeenstta:t:iSotnream::Plugin::Defer(3)
2
3
4
6 Test::Stream::Plugin::Defer - Write tests that get executaed at a later
7 time
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
16 This is the plugin form of Test::Stream::DeferredTests.
17
19 use strict;
20 use warnings;
21
22 use Test::Stream qw/Core Defer/;
23
24 # Declare some more tests to run later:
25 def ok => (1, "another pass");
26 ...
27
28 do_def(); # run the new tests
29
30 done_testing;
31
33 def function => @args;
34 This will store the function name, and the arguments to be run
35 later. Note that each package has a separate store of tests to run.
36
37 do_def()
38 This will run all the stored tests. It will also reset the list to
39 be empty so you can add more tests to run even later.
40
42 The source code repository for Test::Stream can be found at
43 http://github.com/Test-More/Test-Stream/.
44
46 Chad Granum <exodist@cpan.org>
47
49 Chad Granum <exodist@cpan.org>
50
52 Copyright 2015 Chad Granum <exodist7@gmail.com>.
53
54 This program is free software; you can redistribute it and/or modify it
55 under the same terms as Perl itself.
56
57 See http://dev.perl.org/licenses/
58
59
60
61perl v5.32.0 2020-07-28 Test::Stream::Plugin::Defer(3)