On Fri, Sep 07, 2007 at 07:40:40AM -0700, 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);
>   }

I've also wanted this on a number of occasions.  And not just to bail
out of the tests in one file, but to stop the whole run.  I even hacked
something horrible in at one point based on an environment variable, but
it wasn't a polished solution.

As far as I know, there is still no nice way to do this.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to