Geoffrey Young wrote:
hi all.

we have been using Apache-Test to run our entire testing framework, which is
great - we can mix and match apache-related and non-apache related tests
under the same testing tree and it all works without a hitch.

the only problem is that when working on small testing units that don't
require apache the overhead Apache-Test introduces when cleaning,
configuring, starting, and stopping the server is significant.  so, I'd like
to add a new runtime option to remove apache-based foo from the test running
process.  the usage would be something like this

$ t/TEST -no-httpd t/TMCS/Constants/01compile.t -v
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/geoff/src/tmtest/unit/t/TEST
-no-httpd 't/TMCS/Constants/01compile.t' -v
[warning] skipping configuration: -no-httpd specified
t/TMCS/Constants/01compile....1..1
ok 1 - use TMCS::Constants;
ok
All tests successful.

the net result is that this takes, on average, half the time to run this
test when apache is taken out of the picture (, which is much better for
developers - reducing developer frustration is an important step toward the
road to overall test adoption :)

anyway, patch attached.

+1


+ if ($self->{opts}->{'no-httpd'}) { + warning "skipping configuration: -no-httpd specified";

may be it's better to say"skipping httpd configuration"?

+ return

please don't forget ; if } is on the next line.

+    }
+

- $self->start;
+ $self->start unless $self->{opts}->{'no-httpd'};
$self->run_tests;
- $self->stop;
+ $self->stop unless $self->{opts}->{'no-httpd'};
}

may be use -nohttpd, so that you don't need to quote the key string?


-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to