Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Test2::Manual::Tooling

Name Test2::Manual::Tooling
Version 0.000144
Located at /usr/local/share/perl5
File /usr/local/share/perl5/Test2/Manual/Tooling.pm
Is Core No
Search CPAN for this module Test2::Manual::Tooling
Documentation Test2::Manual::Tooling
Module Details Test2::Manual::Tooling

NAME

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


DESCRIPTION

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


TOOL TUTORIALS

FIRST TOOL

the Test2::Manual::Tooling::FirstTool manpage - Introduction to writing tools by cloning ok().

MOVING FROM Test::Builder

the Test2::Manual::Tooling::TestBuilder manpage - This section maps Test::Builder methods to Test2 concepts.

NESTING TOOLS

the Test2::Manual::Tooling::Nesting manpage - How to call other tools from your tool.

TOOLS WITH SUBTESTS

the Test2::Manual::Tooling::Subtest manpage - How write tools that make use of subtests.

TESTING YOUR TEST TOOLS

the Test2::Manual::Tooling::Testing manpage - How to write tests for your test tools.


PLUGIN TUTORIALS

TAKING ACTION WHEN A NEW TOOL STARTS

the Test2::Manual::Tooling::Plugin::ToolStarts manpage - How to add behaviors that occur when a tool starts work.

TAKING ACTION AFTER A TOOL IS DONE

the Test2::Manual::Tooling::Plugin::ToolCompletes manpage - How to add behaviors that occur when a tool completes work.

TAKING ACTION AT THE END OF TESTING

the Test2::Manual::Tooling::Plugin::TestingDone manpage - How to add behaviors that occur when testing is complete (IE done_testing, or end of test).

TAKING ACTION JUST BEFORE EXIT

the Test2::Manual::Tooling::Plugin::TestExit manpage - How to safely add pre-exit behaviors.


WRITING A SIMPLE JSONL FORMATTER

the Test2::Manual::Tooling::Formatter manpage - How to write a custom formatter, in our case a JSONL formatter.


WHERE TO FIND HOOKS AND APIS

global API
the Test2::API manpage is the global API. This is primarily used by plugins that provide global behavior.

In hubs
the Test2::Hub manpage is the base class for all hubs. This is where hooks for manipulating events, or running things at the end of testing live.


SEE ALSO

the Test2::Manual manpage - Primary index of the manual.


SOURCE

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


MAINTAINERS

Chad Granum


AUTHORS

Chad Granum <exodist@cpan.org>Chad Granum


COPYRIGHT

Copyright 2018 Chad Granum <exodist@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024