Re: Test-only code

2009-12-25 Thread Geoffrey Leach
On 12/23/2009 03:30:49 AM, Shlomi Fish wrote: On Wednesday 23 Dec 2009 00:05:40 Ben Morrow wrote: Quoth ge...@hughes.net (Geoffrey Leach): I'm working on a new release of Getopt::Auto. There's a fair amount of code in the module that applies only to the tests. It would be nice if

Re: Test-only code

2009-12-23 Thread Paul LeoNerd Evans
On Tue, 22 Dec 2009 22:05:40 + Ben Morrow b...@morrow.me.uk wrote: Personally I like to put such modules in the t:: namespace, since tests are always run from the module build directory, so I might call it t::Hooks or some such. +1 I often do similar; usually I'll have a t::TestFoo or

Re: Test-only code

2009-12-23 Thread Shlomi Fish
On Wednesday 23 Dec 2009 00:05:40 Ben Morrow wrote: Quoth ge...@hughes.net (Geoffrey Leach): I'm working on a new release of Getopt::Auto. There's a fair amount of code in the module that applies only to the tests. It would be nice if that code was not in the installed module. Any

Re: Test-only code

2009-12-23 Thread sawyer x
On Wed, Dec 23, 2009 at 1:30 PM, Shlomi Fish shlo...@iglu.org.il wrote: What I normally do is put it under t/lib [...] Module::Starter is an example of this. I believe Module::Build is, too. This is cleaner than calling the module itself t::, as modules that start with a lowercase letter

Re: Test-only code

2009-12-23 Thread Shlomi Fish
On Wednesday 23 Dec 2009 15:42:01 sawyer x wrote: On Wed, Dec 23, 2009 at 1:30 PM, Shlomi Fish shlo...@iglu.org.il wrote: What I normally do is put it under t/lib [...] Module::Starter is an example of this. I believe Module::Build is, too. Well, I am to blame for the t/lib modules in

Re: Test-only code

2009-12-22 Thread Elizabeth Mattijsen
On Dec 22, 2009, at 10:33 PM, Geoffrey Leach wrote: I'm working on a new release of Getopt::Auto. There's a fair amount of code in the module that applies only to the tests. It would be nice if that code was not in the installed module. Any suggestions? Maybe persona.pm (from CPAN, by yours

Re: Test-only code

2009-12-22 Thread Ben Morrow
Quoth ge...@hughes.net (Geoffrey Leach): I'm working on a new release of Getopt::Auto. There's a fair amount of code in the module that applies only to the tests. It would be nice if that code was not in the installed module. Any suggestions? Given that Perl allows you to put code in any