Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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 exploiting the Monastery: (6)
As of 2016-02-14 20:19 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (471 votes), past polls