Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

by kcott (Chancellor)
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]
[holli]: so i filed a pull request for a open source project on github, they guy asks me "what motivates me to do this"
[holli]: i am tempted to answer "to please our new asian overlords" or something
[holli]: what a silly question

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-10-18 22:50 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (251 votes). Check out past polls.