Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Test::More - Skip following tests if one test fails

by kcott (Abbot)
on Mar 01, 2013 at 03:54 UTC ( #1021148=note: print w/ replies, xml ) Need Help??


in reply to Test::More - Skip following tests if one test fails

G'day Doozer,

I'm not sure if this is applicable to your current situation, but if you can test for the skip condition up-front, you can do something like:

if ($skip_condition) { plan skip_all => $skip_reason; } else { plan tests => $number_of_tests; } # Planned tests here

-- Ken


Comment on Re: Test::More - Skip following tests if one test fails
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021148]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-12-25 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls