Test::S...nt::Plan(3)

πŸ“¦
version 1.302027 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

Test::Stream::Event::Plan β€” bestie, this is the event of a plan ✨ it's the whole vibe of "okay we're doing a plan now" in Test::Stream, and it lives in the Test::S...nt::Plan(3) manpage πŸŽ€


🚨 DEPRECATED 🚨

girl stop. This distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow. it's giving "we've moved on" πŸ’€

See Test::Stream::Manual::ToTest2 for a conversion guide. like, the glow-up guide is right there, use it 🫢


🌸 DESCRIPTION 🌸

So Plan events get fired off whenever a plan is declared, whenever done testing is called, or whenever a subtext completes. That's it, that's the whole job. three little triggers, one iconic event ✨


πŸŽ€ SYNOPSIS πŸŽ€

use Test::Stream::Context qw/context/;
use Test::Stream::Event::Plan;

my $ctx = context();

# Plan for 10 tests to run
my $event = $ctx->plan(10);

# Plan to skip all tests (will exit 0)
$ctx->plan(0, skip_all => "These tests need to be skipped");

like, look at her go 😭 planning 10 tests, or just skipping the whole thing with skip_all and exiting 0. no cap, the exit 0 is right there in the comment, that's canon. πŸ’…


πŸ‘‘ ACCESSORS πŸ‘‘

  • $num = $plan->max β€” get the number of expected tests πŸ”’ like how many tests we're committing to, bestie
  • $dir = $plan->directive β€” get the directive, such as TODO, skip_all, or no_plan 🎯
  • $reason = $plan->reason β€” get the reason for the directive πŸ’¬ the "why" behind the directive, the lore

πŸ¦‹ SOURCE πŸ¦‹

The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/. go be nosy, it's fine πŸ’–


🧚 MAINTAINERS 🧚

  • Chad Granum <exodist@cpan.org>

⭐ AUTHORS ⭐

  • Chad Granum <exodist@cpan.org>

Copyright 2015 Chad Granum <exodist7@gmail.com>.

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, ily, go write some plans πŸ’…βœ¨ this was perl v5.42.0, dated 2025-07-25, straight out of the Test::S...nt::Plan(3) manpage β€” periodt πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from