<> wrote in message
news: ups.com...
> When creating Perl modules, there is Test::More and similar tools
> available to automate the testing.
>
> Are there general guidelines for writing test scripts that work with
> the Test::Harness framework?
Any file with a '.t' extension that's placed in the './t' folder will be
automatically run by 'make test'.
There are other options, too, but that's how most people create their test
scripts.
..
..
> But how to run the command - "make test"
> puts the script in blib/script, the script itself is in bin/, and
> there may be a system installed old script version, so need to make
> sure that the test is running the script from the development folder.
>
I don't think this is a consideration at all.
The test scripts themselves (ie the '.t' scripts in the './t' folder) don't
get put into blib - they stay where they are.
Also, 'make test' will find (and use) the files in blib *before* it goes
looking for files (in @INC) that have been installed into perl as a result
of an earlier build. (That is, if the file exists in blib, then that's the
one that 'make test' is going to use.)
Cheers,
Rob
|