Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5

[prev] [thread] [next] [Date index for 2005/04/19]

From: Geoffrey Young
Subject: Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5
Date: 17:41 on 19 Apr 2005

Philip M. Gollucci wrote:
> Stas Bekman wrote:
> 
>> Philip M. Gollucci wrote:
>> [...]
>>
>>> I was going to add some Apache-Test tests using Apache::TestMM (per
>>> ask's requests), but I couldn't figure out how not to kill the
>>> existing test suites if Apache-Test isn't installed (for mp1 users
>>> this will usually be the case as its not in the core mp1 core)
>>
>>
>>
>> Just require Apache::Test. In the short time to come most Apache
>> modules will use Apache::Test to do the testing anyway.
>>
> Excellent!  I'll see what I can come up with.

BAH!

alright, call me a pain, but I really dislike the idea of lumping test
modules in prerequisites - Makefile.PL prerequisites are for modules that
are required for the module to operate correctly.  the test suite is
something else entirely :)

see one of my recent Makefile.PL for an idea on how to go about this without
requiring Apache-Test, for example

  http://search.cpan.org/src/GEOFF/Apache-HEADRegistry-0.01/Makefile.PL

of course, this is really being academic and there's no reason you can't use
PREREQ_PM.  but don't let PREREQ_PM lure you into a false sense of security.
 for example, just finding Apache-Test isn't sufficient to know that
mod_perl is available within httpd - you'll want to check for mod_perl.c in
your *.t tests and make sure that httpd will always start by using
appropriate <IfModule> calls in your config.

anyway, not to rant.  this is just one of my little nits, is all.  but I
figure if I can convince people why the runtime environment and testing
environment are different in enough different ways people will start to
think a bit about why they do what they do and everyone will be better off :)

--Geoff

[UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5
Philip M. Gollucci 08:36 on 19 Apr 2005

Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5
Philip M. Gollucci 17:26 on 19 Apr 2005

Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5
Geoffrey Young 17:41 on 19 Apr 2005

Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5
Philip M. Gollucci 17:57 on 19 Apr 2005

Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5
Philip M. Gollucci 17:31 on 19 Apr 2005

Generated at 09:30 on 27 Apr 2005 by mariachi v0.52