Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2014-12-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls