Test2::Bundle(3pm)

okay so welcome to Test2::Bundle(3pm), straight out of the Perl Programmers Reference Guide ✨ bestie, this page is short but it’s giving very specific energy πŸ’…

🌸 NAME 🌸

Test2::Bundle β€” this is literally documentation for bundles πŸŽ€

πŸ’– DESCRIPTION πŸ’–

Bundles are collections of Tools and Plugins. That’s the whole idea, no cap.

A bundle should not provide any tools or behaviors of its own. It should simply combine the tools and behaviors of other packages. Periodt. πŸ¦‹

πŸŽ€ FAQ πŸŽ€

πŸ’… Should my bundle subclass Test2::Bundle? πŸ’…

No. Currently this class is empty. Eventually we may want to add behavior, and in that case we do not want anyone to already be subclassing it. So yeah, don’t do that πŸ™ˆ

✨ HOW DO I WRITE A BUNDLE? ✨

Writing a bundle can be very simple:

package Test2::Bundle::MyBundle;
use strict;
use warnings;

use Test2::Plugin::ExitSummary; # Load a plugin

use Test2::Tools::Basic qw/ok plan done_testing/;

# Re-export the tools
our @EXPORTS = qw/ok plan done_testing/;
use base 'Exporter';

1;

If you want to do anything more complex you should look into Import::Into and Symbol::Move 🧚

πŸ¦‹ SOURCE πŸ¦‹

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

πŸ’… MAINTAINERS πŸ’…

Chad Granum <exodist@cpan.org> πŸ‘‘

πŸ’œ AUTHORS πŸ’œ

Chad Granum <exodist@cpan.org> 🌸

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/ 🫢


okay that’s the whole page πŸ’– signing off with perl v5.42.3, dated 2026-11-03 β€” this was Test2::Bundle(3pm) πŸŽ€βœ¨

πŸ“¦ where this page comes from