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.
\,,,/
(o o)
--oOOo-(_
On Tue, Mar 29, 2011 at 3:46 PM, Michael Ludwig 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
Andrew Moore schrieb am 29.03.2011 um 15:51 (-0500):
> On Tue, Mar 29, 2011 at 3:46 PM, Michael Ludwig 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
On Tue, Mar 29, 2011 at 10:46:20PM +0200, Michael Ludwig wrote:
...
> my $tkn = $hu->token; # (1) Can't carry on without the token
> like $tkn, qr/abc/; # (2) Useless carrying on if this fails.
One thing I've done is defer the plan until I can ensure the basic
prerequesites for the test is
Greg Sabino Mullane schrieb am 29.03.2011 um 17:17 (-0400):
> On Tue, Mar 29, 2011 at 10:46:20PM +0200, Michael Ludwig wrote:
> ...
> > my $tkn = $hu->token; # (1) Can't carry on without the token
> > like $tkn, qr/abc/; # (2) Useless carrying on if this fails.
>
> One thing I've done is def
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
> > wrote:
> > > In a test script, tests may build up intermediate results which
> > > later tests depend upon. Imagine the following in
On 2011-03-29 23:05, Michael Ludwig wrote:
>> Perhaps the 'bail_on_fail' or 'die_on_fail' functions from Test::Most
>> would help you here?
>
> That's very convenient.
perl -le 'use Test::More tests => 2; ok(1) or die; ok(1);'
perl -le 'use Test::More tests => 2; ok(0) or die; ok(1);'
Cheers,
Jo
> From: Jozef Kutej
> To: perl-qa@perl.org
> Sent: Wed, 30 March, 2011 7:54:21
> Subject: Re: Conditional tests - SKIP, die, BAILOUT
>
> On 2011-03-29 23:05, Michael Ludwig wrote:
> >> Perhaps the 'bail_on_fail' or
On Wed, Mar 30, 2011 at 5:58 AM, Ovid wrote:
>
>> From: Jozef Kutej
>> To: perl-qa@perl.org
>> Sent: Wed, 30 March, 2011 7:54:21
>> Subject: Re: Conditional tests - SKIP, die, BAILOUT
>> :
>> :
>> perl -le 'use Te
Buddy Burden schrieb am 30.03.2011 um 11:25 (-0700):
> On Wed, Mar 30, 2011 at 5:58 AM, Ovid wrote:
> >> perl -le 'use Test::More tests => 2; ok(1) or die; ok(1);'
> >> perl -le 'use Test::More tests => 2; ok(0) or die; ok(1);'
> Plus, with the "or die" approach, you can only mimic Test::Most's
10 matches
Mail list logo