Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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.

Comment on Re^2: Tests in a module/package?
Download Code

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 examining the Monastery: (5)
As of 2014-10-22 05:26 GMT
Find Nodes?
    Voting Booth?

    For retirement, I am banking on:

    Results (112 votes), past polls