Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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

by kcott (Canon)
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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021148]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-03-26 16:58 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (315 votes). Check out past polls.