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

Re: Conditional tests - SKIP, die, BAILOUT

Thread Previous | Thread Next
From:
Andrew Moore
Date:
March 29, 2011 13:51
Subject:
Re: Conditional tests - SKIP, die, BAILOUT
Message ID:
AANLkTikhOwMmD1o6MNEvHpwfHbYB9iOU78HbQ0C4W5Lt@mail.gmail.com
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?

-Andy

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