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

Re: How to test a Moose Role?

by chromatic (Archbishop)
on Aug 05, 2011 at 17:59 UTC ( #918838=note: print w/ replies, xml ) Need Help??


in reply to How to test a Moose Role?

Which works best for you?

I've had success writing a minimal test class which consumes the role and testing that, but other times I've had more success testing the actual classes which consume the role. My working guide seems to be that if I consume the role in one or two places, testing the actual classes works better. If I consume the role in many places, a test consumer works better.

I suspect the answer has something to do with how specific or generic the role is.


Comment on Re: How to test a Moose Role?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2014-07-24 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls