in reply to How to structure tests that span several modules
I can offer several thoughts from my own practices -- no claim that any is right (clearly I don't even have a really consistent standard), but one or more of them may resonate for you.
Generally, I consider test scripts cheap and don't hesistate to create a new one to test a narrow set of functionality. That said, I try to keep related tests grouped together in one file.
Also, in your core toolkit of Test modules, make sure you look at Test::Exception. I use it so frequently that my default .t template automatically sticks that in along with Test::More. (And if you're doing a lot of floating-point math, you might appreciate my own Test::Number::Delta, too.)
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
---|