develooper Front page | perl.qa | Postings from March 2011

Re: Conditional tests - SKIP, die, BAILOUT

Thread Previous
From:
Michael Ludwig
Date:
March 29, 2011 14:53
Subject:
Re: Conditional tests - SKIP, die, BAILOUT
Message ID:
20110329215345.GI2076@wladimir
Michael Ludwig schrieb am 29.03.2011 um 23:05 (+0200):
> Andrew Moore schrieb am 29.03.2011 um 15:51 (-0500):
> > On Tue, Mar 29, 2011 at 3:46 PM, Michael Ludwig <milu71@gmx.de>
> > wrote:
> > > In a test script, tests may build up intermediate results which
> > > later tests depend upon. Imagine the following interacts with a
> > > web service so if something fails you don't want to waste time
> > > making network calls to execute stuff which will fail anyway.
> > 
> > Perhaps the 'bail_on_fail' or 'die_on_fail' functions from
> > Test::Most would help you here?

http://search.cpan.org/dist/Test-Most/lib/Test/Most.pm#DIE_OR_BAIL_ON_FAIL

  People want more control over their test suites. Sometimes when you
  see hundreds of tests failing and whizzing by, you want the test suite
  to simply halt on the first failure.

Exactly.
-- 
Michael Ludwig

Thread Previous


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