Test-Class - Re: base class method with many tests

Posted on Mon Jan 14 22:15:31 2008 by adrianh in response to 6872 (See the whole thread of 2)
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?

Write a response