Re: Foreign modules in test scripts?

2005-02-21 Thread Barrie Slaymaker
David Cantrell wrote: The practice of bundling third-party modules with yours is IMO very wrong indeed. If I bundle (eg) Test::Frobnitz, and a hundred other people bundle Test::Frobnitz, then this leads to two problems: Agreed. See the earlier advice about the inc/ directory so you can bundle,

Re: Foreign modules in test scripts?

2005-02-21 Thread Michael G Schwern
On Mon, Feb 21, 2005 at 09:34:24AM +, David Cantrell wrote: > The practice of bundling third-party modules with yours is IMO very > wrong indeed. If I bundle (eg) Test::Frobnitz, and a hundred other > people bundle Test::Frobnitz, then this leads to two problems: > > 1. when the author of T

Re: Foreign modules in test scripts?

2005-02-21 Thread Johan Vromans
Andy Lester <[EMAIL PROTECTED]> writes: >> Is it ok for a CPAN module to use other modules from CPAN only for the >> test scripts (e.g. "Text::Diff")? > > Yes. See http://phalanx.kwiki.org/index.cgi?StandardDotTFiles for > examples of .t files that only run if a certain module is installed. Hmm.

Re: Foreign modules in test scripts?

2005-02-21 Thread Sébastien Aperghis-Tramoni
Selon Michael G Schwern <[EMAIL PROTECTED]>: > > 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?

Re: Foreign modules in test scripts?

2005-02-21 Thread David Cantrell
Mark Stosberg wrote: On 2005-02-20, Steffen Schwigon <[EMAIL PROTECTED]> wrote: General testing question: Is it ok for a CPAN module to use other modules from CPAN only for the test scripts (e.g. "Text::Diff")? Yes. Just declare them as dependencies. First, I'm not sure about the usage policy. May

Re: Foreign modules in test scripts?

2005-02-20 Thread Michael G Schwern
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

Re: Foreign modules in test scripts?

2005-02-19 Thread Mark Stosberg
On 2005-02-20, Steffen Schwigon <[EMAIL PROTECTED]> wrote: > Hi! > > General testing question: > > Is it ok for a CPAN module to use other modules from CPAN only for the > test scripts (e.g. "Text::Diff")? > > First, I'm not sure about the usage policy. Maybe it's more common to > write tests more

Re: Foreign modules in test scripts?

2005-02-19 Thread Andy Lester
Is it ok for a CPAN module to use other modules from CPAN only for the test scripts (e.g. "Text::Diff")? Yes. See http://phalanx.kwiki.org/index.cgi?StandardDotTFiles for examples of .t files that only run if a certain module is installed. xoxo, Andy -- Andy Lester => [EMAIL PROTECTED] => www.pe

Foreign modules in test scripts?

2005-02-19 Thread Steffen Schwigon
Hi! General testing question: Is it ok for a CPAN module to use other modules from CPAN only for the test scripts (e.g. "Text::Diff")? First, I'm not sure about the usage policy. Maybe it's more common to write tests more "low level". Second, I know there is a "build_requires" option in Build.P