develooper Front page | perl.qa | Postings from January 2008

Re: Halting on first test failure

Thread Previous | Thread Next
From:
Geoffrey Young
Date:
January 11, 2008 07:34
Subject:
Re: Halting on first test failure
Message ID:
47878C90.5030403@modperlcookbook.org


Ovid wrote:
> I've posted a trimmed down version of the custom 'Test::More' we use
> here:
> 
>   http://use.perl.org/~Ovid/journal/35363
> 
> I can't recall who was asking about this, but you can now do this:
> 
>   use Our::Test::More 'no_plan', 'fail';
> 
> If 'fail' is included in the import list, the test program will die
> immediately after the first failure.  VERY HANDY at times.

we've discussed this a few times on this list, and I even submitted a 
patch to make it so:

   http://www.mail-archive.com/perl-qa@perl.org/msg08973.html

your interface is very nice, but I think I'd also like to preserve the 
ability to set it at will, outside of import.

hopefully none of us will need to run patched versions for this feature 
at some point in the (near) future :)

--Geoff

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About