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

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

πŸ’– Test::S...nt::Bail β€” the manual page, bestie edition πŸ’–

okay so this is Test::Stream::Event::Bail(3), from the User Contributed Perl Documentation corner of the world, and it's literally the "we need to STOP" event. let's get into it 🫢


✨ NAME ✨

Test::Stream::Event::Bail β€” Bailout! πŸ’€


🚨 DEPRECATED 🚨

bestie. i need you to hear me on this one. This distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow.

Like… it still exists, it still works, but it's giving "we're moving on" energy. 😭

If you wanna migrate, the conversion guide lives in Test::Stream::Manual::ToTest2. go read it, i promise it's not scary.


🌸 DESCRIPTION 🌸

The bailout event is the one that shows up when everything has gone horribly wrong and you need to halt all testing in the current file. πŸ›‘

it's not a "hmm let me think about it" event. it's the "no. we're done here. pack it up." event. periodt. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

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

my $ctx = context();
my $event = $ctx->bail('Stuff is broken');

look how clean that is. you grab a context, you call bail with a reason, and boom β€” event created. ✨


πŸ¦‹ METHODS πŸ¦‹

Inherits from Test::Stream::Event. Also defines:

  • $reason = $e->reason β€” the reason for the bailout. like, why did we bail. what happened. spill. πŸ‘€

πŸ”₯ SOURCE πŸ”₯

The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.

go. click. lurk. it's fine, we all do it. 🧚


πŸ‘‘ 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/


and that's the whole page, no notes, no crumbs, we ate. πŸ“ this little writeup was documented for perl v5.42.0 and dated 2025-07-25 β€” mwah, iconic, take care of yourselves out there, and may your test suites never need to bail. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from