1Test2::Manual::Tooling(U3s)er Contributed Perl DocumentatTieosnt2::Manual::Tooling(3)
2
3
4

NAME

6       Test2::Manual::Tooling - Manual page for tool authors.
7

DESCRIPTION

9       This section covers writing new tools, plugins, and other Test2
10       components.
11

TOOL TUTORIALS

13   FIRST TOOL
14       Test2::Manual::Tooling::FirstTool - Introduction to writing tools by
15       cloning ok().
16
17   MOVING FROM Test::Builder
18       Test2::Manual::Tooling::TestBuilder - This section maps Test::Builder
19       methods to Test2 concepts.
20
21   NESTING TOOLS
22       Test2::Manual::Tooling::Nesting - How to call other tools from your
23       tool.
24
25   TOOLS WITH SUBTESTS
26       Test2::Manual::Tooling::Subtest - How write tools that make use of
27       subtests.
28
29   TESTING YOUR TEST TOOLS
30       Test2::Manual::Tooling::Testing - How to write tests for your test
31       tools.
32

PLUGIN TUTORIALS

34   TAKING ACTION WHEN A NEW TOOL STARTS
35       Test2::Manual::Tooling::Plugin::ToolStarts - How to add behaviors that
36       occur when a tool starts work.
37
38   TAKING ACTION AFTER A TOOL IS DONE
39       Test2::Manual::Tooling::Plugin::ToolCompletes - How to add behaviors
40       that occur when a tool completes work.
41
42   TAKING ACTION AT THE END OF TESTING
43       Test2::Manual::Tooling::Plugin::TestingDone - How to add behaviors that
44       occur when testing is complete (IE done_testing, or end of test).
45
46   TAKING ACTION JUST BEFORE EXIT
47       Test2::Manual::Tooling::Plugin::TestExit - How to safely add pre-exit
48       behaviors.
49

WRITING A SIMPLE JSONL FORMATTER

51       Test2::Manual::Tooling::Formatter - How to write a custom formatter, in
52       our case a JSONL formatter.
53

WHERE TO FIND HOOKS AND APIS

55       global API
56           Test2::API is the global API. This is primarily used by plugins
57           that provide global behavior.
58
59       In hubs
60           Test2::Hub is the base class for all hubs. This is where hooks for
61           manipulating events, or running things at the end of testing live.
62

SEE ALSO

64       Test2::Manual - Primary index of the manual.
65

SOURCE

67       The source code repository for Test2-Manual can be found at
68       https://github.com/Test-More/Test2-Suite/.
69

MAINTAINERS

71       Chad Granum <exodist@cpan.org>
72

AUTHORS

74       Chad Granum <exodist@cpan.org>
75
77       Copyright 2018 Chad Granum <exodist@cpan.org>.
78
79       This program is free software; you can redistribute it and/or modify it
80       under the same terms as Perl itself.
81
82       See http://dev.perl.org/licenses/
83
84
85
86perl v5.36.0                      2022-07-22         Test2::Manual::Tooling(3)
Impressum