Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Order of startup methods with Test::Class

by Old_Gray_Bear (Bishop)
on Aug 31, 2011 at 11:41 UTC ( #923408=note: print w/ replies, xml ) Need Help??

in reply to Order of startup methods with Test::Class

If you need to have the start up methods run in a specific order, something is wrong with your analysis of the problem.

That said, change your naming convention from 'sub name_that_makes_sense{}' to 'sub startxxx_name_that_makes_sense {}' and replace the xxx with the order of starting number (000, 001, ... , 998, 999). (But I'd go back to the problem analysis and ask "Why are things order-dependent? If A simply MUST come before B, then why are they in different setup-routines?")

I Go Back to Sleep, Now.


Comment on Re: Order of startup methods with Test::Class
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2015-10-10 04:27 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (254 votes), past polls