You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <gy...@laserlink.net> on 2001/06/21 13:07:23 UTC

Apache::Test request

since Apache::Test seems to be the hot topic of late, I was wondering if I
could make a few (well, two) requests :)

1. I tried to implement skip() functionality, but couldn't get my head
around it.  its probably an important component to have eventually.

2. the current logic is broken for 1.3 when using extra.conf. the problem is
that the Include that brings in extra.conf happens before the PerlRequire
that automatically calls 'use blib' (well, the equivalent anyway).  I have
tried lots of ways to get around this, the easiest was to place PerlRequire
in the preamble instead of the postamble, but that broke the existing 2.0
tests.  All of my other attempts didn't quite get there either, since the
directives are in an array and don't seem to always have a 1-1 relationship
the ordering gets sticky.  I thought about some complex tie interface that
would reorder based on $self->server->version_of, but it seemed a bit much.
it probably just needs another set of eyes looking at it...

anyway, I guess we (I) could always write our own httpd.conf for 1.3
testing, but the extra.conf is so convenient that I wanted to make it work
somehow :)

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache::Test request

Posted by Stas Bekman <st...@stason.org>.
On Thu, 21 Jun 2001, Doug MacEachern wrote:

> On Thu, 21 Jun 2001, Geoffrey Young wrote:
>
> > since Apache::Test seems to be the hot topic of late, I was wondering if I
> > could make a few (well, two) requests :)
> >
> > 1. I tried to implement skip() functionality, but couldn't get my head
> > around it.  its probably an important component to have eventually.
>
> if you say use Apache::Test;  you get Apache::Test::plan, which lets you
> say:
>
> plan tests => $ntests, \&condition;
>
> if condition() returns false, the tests are skipped.

shouldn't we forward the export of 'skip' too? So one can skip individual
tests?

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache::Test request

Posted by Doug MacEachern <do...@covalent.net>.
On Thu, 21 Jun 2001, Geoffrey Young wrote:

> since Apache::Test seems to be the hot topic of late, I was wondering if I
> could make a few (well, two) requests :)
> 
> 1. I tried to implement skip() functionality, but couldn't get my head
> around it.  its probably an important component to have eventually.

if you say use Apache::Test;  you get Apache::Test::plan, which lets you
say:

plan tests => $ntests, \&condition;

if condition() returns false, the tests are skipped.

> 2. the current logic is broken for 1.3 when using extra.conf. the problem is
> that the Include that brings in extra.conf happens before the PerlRequire
> that automatically calls 'use blib' (well, the equivalent anyway).  I have
> tried lots of ways to get around this, the easiest was to place PerlRequire
> in the preamble instead of the postamble, but that broke the existing 2.0
> tests.  All of my other attempts didn't quite get there either, since the
> directives are in an array and don't seem to always have a 1-1 relationship
> the ordering gets sticky.  I thought about some complex tie interface that
> would reorder based on $self->server->version_of, but it seemed a bit much.
> it probably just needs another set of eyes looking at it...

i'll look into this later.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org