Test2::Plugin::DieOnFail(3pm)

Test2::Plugin::DieOnFail3pm

Automatically die on the first test failure.

Usage

    use Test2::V0;
    use Test2::Plugin::DieOnFail;
    ok(1, "pass");
    ok(0, "fail");
    ok(1, "Will not run");

Overview

This module will die after the first test failure. This will prevent your tests from continuing. The exception is thrown when the context is released, that is it will run when the test function you are using, such as ok(), returns. This gives the tools the ability to output any extra diagnostics they may need.

Source

The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/.

Maintainers

Chad Granum <[email protected]>

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

Chad Granum <[email protected]>

From libtest-simple-perl 1.302210-1 in Debian 13 (Trixie). Also shipped by libtest2-suite-perl. Parsed by carta from the page's man source.