I am working on a personal Perl module to create a basic script structure and help me learn more about the language. I created a new module called "AWSTools :: Framework" with ExtUtils :: ModuleMaker using the modulemaker command-line modulemaker . I am trying to find a suitable way to test it during development.
The created directory structure includes the following:
./AWSTOOLS/Framework/lib/AWSTools/Framework.pm
./AWSTOOLS/Framework/t/001_load.t
The autogenerated file 001_load.t as follows:
# -*- perl -*-
If I try to run the script directly (either from the command line or from my TextMate editor), it fails with:
Can't locate AWSTools / Framework.pm in @INC ....
If I try to run prove in the ./AWSTOOLS/Framework directory, this will not work either.
Question: What is the correct way to run tests on Perl modules during their development?
source share