Testing mod_perl

Worik Stanton <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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)
signature.asc (application/pgp-signature, 538 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTc9mXAAoJEDgltBsVWtVcS/cH/jUwSyHgk8MJnLDE/TOc3qQj
SLOfZRqb3KwW5BAHeQ17GGegGohOTv4SL1sPAD2XhpwtjscS8f5jLgpgES976Thh
Dlx7X0P4aO+AJ7/xL7vQcZEqr+/3wU6+KbI71ZJNZItLsg48Vyn4wDa21auyIKCx
o2tu/1k/cnlEhS/rb1pKPCrjpN03r2IK0xFmnW6ribAbsRx00fvRCnFbnDHx/QC2
pSLNPtQieloBlW5XUmhor4zeNmSRhoEZyjk/dwU27sVhH4e/PjZKx/lmmrZc4E+6
E0ibP23c3+diap4NszQBwpodsaRvdzNK6ihRBK6lw7P3IX1IlCEifRjEEqYHJDU=
=5Q6a
-----END PGP SIGNATURE-----
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.