1Test2::Plugin::SpecDeclUasreer(3C)ontributed Perl DocumeTnetsatt2i:o:nPlugin::SpecDeclare(3)
2
3
4

NAME

6       Test2::Plugin::SpecDeclare - Syntax keywords for Test2::Tools::Spec.
7

DESCRIPTION

9       This adds keywords for all the exports provided by Test2::Tools::Spec.
10       These keywords add sugar-coating to the Spec tools.
11

SYNOPSIS

13           use Test2::Tools::Spec;
14           use Test2::Plugin::Spec;
15
16           tests foo {
17               ...
18           }
19
20           describe bar {
21               before_each blah { ... }
22
23               case a { ... }
24               case b { ... }
25
26               tests x(todo => 'not ready') { ... }
27               tests y(skip => 'will die' ) { ... }
28           }
29
30           done_testing;
31
32       All exports from Test2::Tools::Spec gain keyword status. You can use a
33       bareword or a quoted string as a name, you can specify options as a
34       signature, then you provide a block, no trailing semicolon or 'sub'
35       keyword needed.
36
37           KEYWORD NAME { ... }
38           KEYWORD NAME(KEY => VAL, ...) { ... }
39
40           KEYWORD 'NAME' { ... }
41           KEYWORD 'NAME'(KEY => VAL, ...) { ... }
42
43           KEYWORD "NAME" { ... }
44           KEYWORD "NAME"(KEY => VAL, ...) { ... }
45
46       Non-keyword forms still work:
47
48           FUNCTION NAME => sub { ... };
49           FUNCTION NAME => {...}, sub { ... };
50
51           FUNCTION('NAME', sub { ... });
52           FUNCTION('NAME', {...}, sub { ... });
53

SOURCE

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

MAINTAINERS

59       Chad Granum <exodist@cpan.org>
60

AUTHORS

62       Chad Granum <exodist@cpan.org>
63
65       Copyright 2015 Chad Granum <exodist7@gmail.com>.
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.0                      2016-05-31     Test2::Plugin::SpecDeclare(3)
Impressum