Test2::Event::Skip(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

Test2::Event::Skip(3) is the Skip event type β€” this is its manual page from the User Contributed Perl Documentation, and yes bestie, it's giving small but iconic. ✨

🌸 DESCRIPTION 🌸

Okay so here's the tea: Skip events bump test counts just like Test2::Event::Ok events, but they can never fail. No cap. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

Use it like this:

use Test2::API qw/context/;
use Test2::Event::Skip;

my $ctx = context();
my $event = $ctx->skip($name, $reason);

or:

my $ctx   = context();
my $event = $ctx->send_event(
    'Skip',
    name   => $name,
    reason => $reason,
);

πŸŽ€ ACCESSORS πŸŽ€

  • $reason = $e->reason β€” this hands you the original true/false value of whatever was passed into the event, but it's reduced down to 1 or 0. Lowkey tidy. 🧚

πŸ”₯ SOURCE πŸ”₯

The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go browse, bestie. πŸ‘‘

πŸ’œ 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 <https://dev.perl.org/licenses/>


kisses and clean exits πŸ’… β€” perl v5.42.0, dated 2025-07-28, for Test2::Event::Skip(3). 🫢

πŸ“¦ where this page comes from