Test::S...ieOnFail(3)

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

πŸ’– NAME πŸ’–

Test::Stream::Plugin::DieOnFail β€” bestie, this one just dies on the very first test failure. Automatic. No cap. πŸ’€


🚫 DEPRECATED 🚫

Okay so real talk: this whole distribution is deprecated, and it's been deprecated in favor of Test2, Test2::Suite, and Test2::Workflow. She's retired, she's living her best life elsewhere. ✨

If you're trying to convert, peep Test::Stream::Manual::ToTest2 for the conversion guide. iykyk. 🫢


⚠️ EXPERIMENTAL CODE WARNING ⚠️

"This module is still EXPERIMENTAL". Like, Test-Stream itself is stable now, but this particular module is still out here in experimental limbo. You're still totally free to use it, bestie, but you have been warned that it may change in backwords incompatible ways. 😭 (yes, that's the original spelling, I'm not touching it, it's iconic)

This message will be removed from this module's POD once it's considered stable. So if you're reading this and it's gone? Slay, she graduated. πŸŽ“

πŸ“– DESCRIPTION πŸ“–

So here's the tea: this module will die after the first test failure. Periodt. That means your tests just stop, they do not keep going, no zombie test run, none of that. πŸ’…

The exception gets thrown when the context is released β€” which basically means it runs when the test function you're using, like ok(), returns. That's lowkey the whole point: it gives the tools the ability to output any extra diagnostics they may need before everything goes down. πŸ”₯


✨ SYNOPSIS ✨

use Test::Stream qw/Core DieOnFail/;

ok(1, "pass");
ok(0, "fail");
ok(1, "Will not run");

See that last one? "Will not run" β€” because the fail before it already took the whole thing out. Iconic behavior honestly. πŸ’€βœ¨


πŸ”— SOURCE πŸ”—

The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/. Go say hi, go read the code, go be nosy, you deserve 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 bestie πŸ’– this little manual page came to you from perl v5.42.0, dated 2025-07-25, and it was living under the name Test::S...ieOnFail(3) (yes the title got cropped, that's just how the man page headers do, it's a whole thing πŸ™ˆ). mwah, stay slaying, go write some tests πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from