Hello
(First off, I'm not sure this is the right list to talk about this, but I haven't been able to find a better one on my own. If there is a better list, Please let me know. Thanks.)


At work here we've decided to use Module::Build for all our mod_perl modules, and to use Apache::Test to test them with, And it's been my job to write the Apache::TestMB module that will get Apache::Test running under Module::Build. For the most part, I have been successful in this, and everything is running ok. Unfortunately, this has not been as straight forward or smooth as I would have hoped. Fist off is the fact that I was only able to get it working my having ./Build run the t/TEST script, which eliminates allot of the testing power of both Module::Build and Apache::Test.

More important than that, I've also run into a subtle but important incompatibility between the two. When running tests, Module::Build will always look in the current working directory for the configuration directory (normally _build/). But Apache::TestRun and Apache::TestHarness will change into the t/ directory to run the actual tests. Because of this Module::Build won't be able to find or load any of the configuration information. Unfortunately, I'm also setting up a test database to test against, and I need Module::Build to supply the connection information to each of the tests also. I got around this by subclassing both the new and current methods in our Apache::TestMB module, but I can already see how this is going to cause problems later on, for the other test modules I need to write.

So the big question is why is Apache::TestHarness changing into the t/ directory at all? I can see where some of the programming becomes easier by doing that. But overall I don't see what's gained by doing that.

Anyway, after spending the last two weeks going looking through code, I've basically come to the conclusion that to really get Apache::Test working under Module::Build (and not just the simple stop gap I'm using), will not only require a new module incorporating Apache::TestMM, Apache::TestRun and the t/TEST script, but will also require some major patches to Apache::TestHarness, and probably to Apaceh::TestConfig as well. Of course this is not something I can do on my own. But considering how important Module::Build is becoming, I'd think it would be a good idea to start talking about this.

Marty Peck


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to