Test2::...Tooling(3)
π Test2::Manual::Tooling π
Okay so this is the Test2::...Tooling(3) page from User Contributed Perl Documentation β aka Test2::Manual::Tooling, the manual page for tool authors. Welcome to the group chat where we learn to build Test2 tools, plugins, and other components. No cap, this index is your map. πΊοΈβ¨
π NAME π
Test2::Manual::Tooling β manual page for tool authors. Thatβs it, thatβs the name, and it ate. π
πΈ DESCRIPTION πΈ
This section covers writing new tools, plugins, and other Test2 components. Basically: if you wanna make tooling that slaps, start here. π οΈπ¦
π TOOL TUTORIALS π
π§° FIRST TOOL
Test2::Manual::Tooling::FirstToolβ intro to writing tools by cloningok(). Iconic starter energy. π
π MOVING FROM Test::Builder
Test2::Manual::Tooling::TestBuilderβ this section mapsTest::Buildermethods toTest2concepts. If youβre moving over, this is your translator bestie. π
πͺ NESTING TOOLS
Test2::Manual::Tooling::Nestingβ how to call other tools from your tool. Tool-ception, but make it valid. π
π§ͺ TOOLS WITH SUBTESTS
Test2::Manual::Tooling::Subtestβ how to write tools that make use of subtests. Subtest girlies, this oneβs for you. π«Ά
β TESTING YOUR TEST TOOLS
Test2::Manual::Tooling::Testingβ how to write tests for your test tools. Test-ception, lowkey essential. π§ͺπ
π PLUGIN TUTORIALS π
π TAKING ACTION WHEN A NEW TOOL STARTS
Test2::Manual::Tooling::Plugin::ToolStartsβ how to add behaviors that occur when a tool starts work. Main character entrance vibes. β¨
π TAKING ACTION AFTER A TOOL IS DONE
Test2::Manual::Tooling::Plugin::ToolCompletesβ how to add behaviors that occur when a tool completes work. The finish-line slay. π
π TAKING ACTION AT THE END OF TESTING
Test2::Manual::Tooling::Plugin::TestingDoneβ how to add behaviors that occur when testing is complete (IEdone_testing, or end of test). End-of-test era. π
πͺ TAKING ACTION JUST BEFORE EXIT
Test2::Manual::Tooling::Plugin::TestExitβ how to safely add pre-exit behaviors. Pre-exit, but make it safe. π
βοΈ WRITING A SIMPLE JSONL FORMATTER βοΈ
Test2::Manual::Tooling::Formatterβ how to write a custom formatter, in our case a JSONL formatter. Custom formatter era, and ours is JSONL. π§Ύβ¨
π WHERE TO FIND HOOKS AND APIS π
π global API
Test2::API is the global API. This is primarily used by plugins that provide global behavior. Think of it as the big-picture group chat. π£
π§© In hubs
Test2::Hub is the base class for all hubs. This is where hooks for manipulating events, or running things at the end of testing live. Hooks live here, bestie. πͺπ
π SEE ALSO π
Test2::Manualβ primary index of the manual. Start here if youβre lost. ποΈ
π¦ SOURCE π¦
The source code repository for Test2-Manual can be found at https://github.com/Test-More/test-more/. Go snoop, but respectfully. π
π«Ά MAINTAINERS π«Ά
Chad Granum <exodist@cpan.org>
β¨ AUTHORS β¨
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright 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/
And thatβs the whole page, bestie. This cutie was rendered by perl v5.42.0 on 2025-07-28, and the page itself is Test2::...Tooling(3). Periodt. π
β¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms