in reply to Re^2: Bailing out from Test::More after 'some' failures
in thread Bailing out from Test::More after 'some' failures
The TB version:sub mytool { my $ctx = context(); $ctx->ok(...); $ctx->diag(...); $ctx->release; # This is where the bail-on-fail is triggered }
$tb methods do acquire context's, but each of those methods has to acquire it's own. That said the diagnostics TB itself generates in a failed-ok (like line number) will make the output, it is just extra diags are lost.sub mytool { $tb->ok(...); # BailOnFail is triggered here $tb->diag(...); # Lost }
|
|---|