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.
In reply to Re: Tests in a module/package?
by gwadej
in thread Tests in a module/package?
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |