Another handy trick I picked up from one of Ingy's presentations at YAPC this year is just naming your test modules along the lines of 't::' and the conversion to a path happens automatically on use. E.g., given t/Test/ModuleA.pm:
use t::Test::ModuleA;
It also clearly denotes that a module is a support module for testing, which I personally find helps readability in my test scripts.
-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.
In reply to Re: Test::Class and use lib
by xdg
in thread Test::Class and use lib
by friedo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |