in reply to Re: Tests in a module/package?
in thread Tests in a module/package?
Specifically, the usual idiom is to use FindBin with a "use lib" call, like this inside your *.t code:
This is the usual way to specify a module location relative to the script location.use FindBin qw( $Bin ); use lib "$Bin/lib"; use My::Special::Purpose::Test::Code qw( :all );
|
---|
In Section
Seekers of Perl Wisdom