in reply to Test::More::use_ok can't find the module
Am I supposed to just copy the whole module distribution into /tmp (or checkout via svn) and then do perl Makefile.PL && make test
Almost, but you don't have to worry about copying or checking out somewhere else. Generally, from within your development directory, you can do this:
$ perl Makefile.PL $ make $ make test
To cleanup afterwards, run make clean or make realclean. See ExtUtils::MakeMaker for details.
For example, to run verbosely (showing all tests), do this:
$ make test TEST_VERBOSE=1
prove is another option, but you still generally want to run make to have your modules copied to the blib directory before you run prove with the -b option.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|