Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 rifling through the Monastery: (15)
As of 2015-07-03 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls