I used Module::Starter to get my collection of modules off the ground. This is where I get the "module distribution" I'm talking about -- it's a directory with my modules inside lib/, some tests in t/, a Makefile.PL, Changes, README, MANIFEST and bin/.
While I've done plenty of modules in the past, this is the first time I've done any automated tests. That's a confession. I *have* read Test::Tutorial and the docs for Test::More and Test::Simple, FWIW.
The sole test created by Module::Starter is one that calls use_ok against each module in my distribution. When I run this test by typing perl -wT 00_load.t, each test fails with "Can't locate My/Module/Path/Here.pm in @INC" etc.
I have the whole lib/ directory of my module distribution softlinked into the directory specified in my PERL5LIB environmental variable. Not sure why this doesn't work
Since I'm new to testing I'm wondering if I'm going about this all wrong. How am I *supposed* to run my tests? Am I supposed to just copy the whole module distribution into /tmp (or checkout via svn) and then do perl Makefile.PL && make test? Am I supposed to do what I'm doing -- just perl -wT ##-name.t each file inside t/??
Very lost. Thanks for any help.
In reply to Test::More::use_ok can't find the module by ryantate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |