Ovid wrote: > --- Geoffrey Young <[EMAIL PROTECTED]> wrote: > >> I'd like Test::* to completely bailout on the first is/ok/whatever to >> fail. I just can't seem to find a canonical way to do this. but >> someone here knows, I'm sure :) > > If the tests are iterative as you mention, you can do this: > > foreach my $foo ( @bar ) { > ok $foo, "$foo works" or BAIL_OUT($reason); > }
yeah, ok. except that there are like 58 individual tests that get looped over multiple times, so that's a lot of writing :) after poking around T::B, I'm actually surprised this feature isn't integrated. if seems like T::B::ok() could be coded to bailout/die on failure if $ENV{SOMETHING} is set... but thanks anyway - I hadn't actually figured on testing the rv of the tests themselves. --Geoff