Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Tests in a module/package?

by doom (Deacon)
on Mar 14, 2009 at 18:27 UTC ( #750639=note: print w/replies, xml ) Need Help??

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:
use FindBin qw( $Bin ); use lib "$Bin/lib"; use My::Special::Purpose::Test::Code qw( :all );
This is the usual way to specify a module location relative to the script location.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://750639]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2016-08-30 17:15 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (420 votes). Check out past polls.