XP is just a number | |
PerlMonks |
Re: Tests in a module/package?by gwadej (Chaplain) |
on Mar 11, 2009 at 20:15 UTC ( [id://750011]=note: print w/replies, xml ) | Need Help?? |
My normal approach for handling this case is to make a lib directory under t directory for test library code. I can then use FindBin to add that directory to any test files that need it. I'm not sure where I got this idea. (I'm pretty sure it's not mine.) This allows me to keep testing-specific utility code out of t/ but close by.
G. Wade
In Section
Seekers of Perl Wisdom
|
|