Re: Testing mod_perl

John Dunlap <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC5eUSusHo02YEAtvNEqbH9Sx-orkeonyrmUBxMmrjQE3T_PWA@mail.gmail.com>
If I may ask a potentially stupid question, what are you attempting to do
which necessitates the use of Apache2::Directive?


On Wed, May 14, 2014 at 5:01 PM, Worik Stanton <[email protected]>wrote:

> On another matter...
>
> On 15/05/14 05:16, Perrin Harkins wrote:
> > simpler things like PerlSetVar.  There is an automated test for this
> > though:
> >
> http://cpansearch.perl.org/src/PHRED/mod_perl-2.0.8/t/response/TestApache/conftree.pm
>
> I have not used this testing frame work before (other than watch tests
> go by during the build process).
>
> I looked up http://perl.apache.org/docs/general/testing/testing.html but
> there does not seem to be a tutorial to get started.  Where is the
> documentation that shows how to arrange the files and run these tests?
>
> I tried creating a directory t/ and t/TestApache and put conftree.pm
> into TestApache and created a file contree.pl which used
> TestApache::conftree
>
> (I had to add a "1;" to the last line of conftree.pm which was an
> indication  I was on the  wrong track).
>
> I then called TestApache::conftree->new(@ARGV)->run();
>
> Anyway clearly I am doing the wrong thing, no matter how natural it
> seems and I need some help to get on the right track
>
> cheers
> Worik
>
> --
> The only true evil is turning people into things....
>                                          Granny Weatherwax
>        [email protected] 021-1680650, (03) 4821804
>                           Aotearoa (New Zealand)
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.