Test::Mojo::Role::StopOnFail - Stop Mojolicious tests after first failure
my $t = Test::Mojo->with_roles('+StopOnFail')->new('MyApp'); $t->get_ok('/')->status_is(200);
When you have many tests, you may want to stop the test suite after the first failure. This modules does a
Test::More::BAIL_OUT, like the
die_on_fail on Test::Most behavior.
Test::Mojo::or() function only run when
$t->success is FALSE. Unconsciously, this module removed the purpose of this function, after all, a
BAIL_OUT would be threw before.
This software is copyright (c) 2019 by Junior Moraes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.