Test2::...eOnFail(3pm)

okay bestie, you're looking at the manual page for Test2::...eOnFail(3pm) from the Perl Programmers Reference Guide β€” yes, the header truncates the name like that, iconic πŸ’….

✨ NAME ✨

Test2::Plugin::DieOnFail β€” Automatically die on the first test failure. That's the whole vibe: first fail, and boom, the module says β€œwe're done here” πŸ’€.

πŸ’– DESCRIPTION πŸ’–

Bestie, this module will die after the first test failure. This will prevent your tests from continuing β€” no more chugging along after a fail. The exception is thrown when the context is released, which is to say it will run when the test function you are using, such as ok(), returns. That timing gives the tools the ability to output any extra diagnostics they may need. Periodt ✨.

πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the little demo, exactly as it appears:

use Test2::V0;
use Test2::Plugin::DieOnFail;

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

🌸 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 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/.


πŸ’– that's the whole page, bestie! later: this one is from perl v5.42.3, dated 2026-11-03, and the manual name is Test2::...eOnFail(3pm). πŸŽ€

πŸ“¦ where this page comes from