httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Wheeler <>
Subject Perl Testing
Date Tue, 17 Jun 2003 15:51:24 GMT
Hi All,

I'm porting MasonX::CallbackHandler from Apache::test to Apache::Test. 
My Makefile.PL does this:

use Apache::TestMM qw(test clean);
use Apache::TestRunPerl;


This is nice, because it creates t/TEST for me. But I've noticed a 
couple of issues that might be relevant to other folks porting from 

1. The documentation is pretty lacking. Granted, it was bad in 
Apache::test, too, but I sure would like to see some decent pod in each 
of the important Apache::Test* modules.

2. The tests are being run from t/, rather then from the root of the 
module distribution directory. IIRC, Perl itself runs all of its tests 
from t/, but all modules by default run them from the module 
distribution root. Can this be fixed/changed?

3. Those of us porting from Apache::test typically have a special 
configuration file (now nicely able to be t/lib/ -- 
thanks!) and loads up the libraries we want to test. However, Apache 
isn't being started during `make test` with C<use blib>. Now, since 
tests run from t, even it it did C<use blib>, it wouldn't work. So I 
had to add this code to my

   use File::Spec::Functions qw(catdir);
   use lib catdir '@ServerRoot@', '..', 'blib';
   use lib catdir '@ServerRoot@', '..', 'lib';

Could this, too, be fixed? Perhaps just for Perl modules?

TIA for your help/answers/corrections to my observations.



David Wheeler                                     AIM: dwTheory                              ICQ: 15726394                         Yahoo!: dew7e
Kineticode. Setting knowledge in motion.[sm]

View raw message