in reply to Re: Test::More - Skip following tests if one test fails
in thread Test::More - Skip following tests if one test fails

Just an additional note (many months after the event, and frankly to help me remember if I search for this again), BAIL_OUT will not work in the same way as SKIP - it will cause the test to fail.

If your uber condition is not something that should cause a test failure, you'll probably want to use tobyink's SKIP: arrangement or Ken's skip_all => $skip_reason below.

  • Comment on Re^2: Test::More - Skip following tests if one test fails

Replies are listed 'Best First'.
Re^3: Test::More - Skip following tests if one test fails (BAIL_OUT--)
by tye (Sage) on May 27, 2014 at 15:31 UTC

    Worse, BAIL_OUT will cause subsequent test scripts to not be run! Though nobody seems to get that impression from reading the documentation, IME.

    - tye