On Sun, Feb 20, 2005 at 02:12:26AM +0100, Steffen Schwigon wrote:
> Is it ok for a CPAN module to use other modules from CPAN only for the
> test scripts (e.g. "Text::Diff")?

Up to you.  The way I look at it, if you have one dependency it doesn't
hurt to have another.  Either they're using a CPAN shell and its all
automated or they're not and they're used to lots of pointless extra work.

Alternatively, you can distribute it with your module.  The usual convention
is to copy it into t/lib as t/ is not scanned by search.cpan.org.


> First, I'm not sure about the usage policy. Maybe it's more common to
> write tests more "low level".

Again, up to you.  There is no usage policy.  Welcome to CPAN.


> Second, I know there is a "build_requires" option in Build.PL, but
> does the CPAN(PLUS).pm know about that option and really only download
> and use those "build_requires" temporarily during module build/test or
> does it fully install them?

Something better answered by [EMAIL PROTECTED]  Note that I
believe CPANPLUS currently defaults to favoring a Makefile.PL over a Build.PL
if both are present so often it'll just be treated like a normal prereq
anyway.

In the end, its not terribly important if an extra module gets installed.
If its easier for you to use the module, use it.  Disk is cheap.  Duplicate
code is extra work and extra bugs.

Reply via email to