Test2::Bundle(3)
okay so welcome to Test2::Bundle(3), bestie β a User Contributed Perl Documentation page thatβs about to make bundles make sense πβ¨
πΈ NAME πΈ
Test2::Bundle β documentation for bundles, and thatβs literally the whole vibe. π
π¦ DESCRIPTION π¦
Bundles are collections of Tools and Plugins. Bundles should not provide any tools or behaviors of their own; they should simply combine the tools and behaviors of other packages. Thatβs the assignment, no cap. β¨
π¬ FAQ π¬
Should my bundle subclass Test2::Bundle? π€
No. Currently this class is empty. Eventually we may want to add behavior, in which case we do not want anyone to already be subclassing it. So likeβ¦ donβt do it, bestie β future-proofing is the moment. π«Ά
π οΈ HOW DO I WRITE A BUNDLE? π οΈ
Writing a bundle can be very simple, fr fr:
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. Those are the names to know, iykyk. π§
π 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 π
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/
This page came from perl v5.42.0, dated 2025-07-28, and itβs the Test2::Bundle(3) manual β bye bestie, go write a slay bundle! ππ
π¦ 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