Posted on 2008-01-14 20:15:31-08 by adrianh in response to 6872
Re: base class method with many tests

Doing what you did is fine. If you look at the various modules that provide assertions (like Test::Deep, Test::Exception, etc.) you'll see that they all encapsulate a complex test as a single pass/fail. So it's pretty much the default approach.

Without seeing the rest of your class it's hard to tell - but perhaps action_ok doesn't really belong to the test class and should be in a separate Test::Actions module?

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.