start/stop subclassing for setup/teardown?

2006-03-09 Thread Tyler MacDonald
My unit tests all need a database to operate. I was having each .t file setup and teardown the test database before, but I want to move to having this happen when apache is started and stopped, so that I can interact with things manually on the server and run individual tests with prove a lot quick

Re: start/stop subclassing for setup/teardown?

2006-03-09 Thread Stas Bekman
Tyler MacDonald wrote: My unit tests all need a database to operate. I was having each .t file setup and teardown the test database before, but I want to move to having this happen when apache is started and stopped, so that I can interact with things manually on the server and run individual tes

Re: start/stop subclassing for setup/teardown?

2006-03-09 Thread Tyler MacDonald
Stas Bekman <[EMAIL PROTECTED]> wrote: > It restores the perms if it has changed them. It needs to do that, > regardless of whether the server was stopped - since it may not be stopped > at all. > > Usually you use t/conf/modperl_extra.pl to do anything you need to happen > at the startup and a

Re: start/stop subclassing for setup/teardown?

2006-03-09 Thread Tyler MacDonald
Tyler MacDonald <[EMAIL PROTECTED]> wrote: > After digging around a bit, it looks like I just have to attach > myself to the "stop-httpd" option instead of the "stop" method, but that's > getting less obvious and more deep into an undocumented API. Got it in a hackety-hacked way; thi