Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2017-06-29 06:20 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (653 votes). Check out past polls.