On Thu, Aug 16, 2001 at 07:15:23PM -0400, Sean Quinlan wrote:
> OK, so here's the link to where the modules I've been working on polishing up
> can be found:
> ftp://mcclintock.bu.edu/BMERC/perl/CompBio/
>
> I would greatly appriciate any input on them. Particularly if you catch some
> horrible error or oversight which is destined to bite me in the ass.
Remove Makefile from MANIFEST. That's the only critical thing.
Maybe avoid using a nonstandard module in the test script. Perhaps
just skip the tests if it isn't installed, using something like:
BEGIN {
eval { require Test::More; };
if ($@) {
print "# this test requires the Test::More module.\n1..0\n";
exit;
}
}
use Test::More tests => 14;
...
This satisfies the "test suite protocol" with "1..0". It's what
produces the "skipping test on this platform" message from
Test::Harness if you create a "t" directory and rename test.pl
t/foo.t. (Useful if you write too many tests for one script.)
-John