Nick Phillips wrote:
> Garrett Goebel wrote:
> > Nick Phillips wrote:
> > >
> > > Just wondering whether anyone here has any cunning ways of
> > > unit testing code that uses the various Apache:: modules;
> > > the only vaguely useful thing I've managed to find so far
> > > is Apache::FakeRequest, but that still leaves problems
> > > with code that uses Apache::Request, Apache::Cookie etc.
> > >
> > > Surely *someone* has done it before?...
> >
> > http://perl.apache.org/docs/general/testing/testing.html
>
> So far as I can see, that is all directed at testing by sending a
> request to a server and checking what comes back; that's really
> not useful for testing components of code individually, which is
> the point. I don't want to test the server, I want to individually
> test each chunk of my code.
Then you're not interested in testing your code in the context of a live apache mod_perl server? Are you looking for general Perl testing references?
http://magnonel.guild.net/~schwern/talks/Test_Tutorial/Test-Tutorial.pdf
http://magnonel.guild.net/~schwern/talks/Perls_Testing_System/slides/
http://www.petdance.com/perl/automated-testing/
http://www.petdance.com/perl/large-project-testing.pdf
--
Garrett Goebel
IS Development Specialist
ScriptPro Direct: 913.403.5261
5828 Reeds Road Main: 913.384.1008
Mission, KS 66202 Fax: 913.384.2180
www.scriptpro.com garrett at scriptpro dot com
>
>
> Cheers,
>
>
> Nick
>
> --
> Nick Phillips / +64 3 479 4195 / [EMAIL PROTECTED]
> # these statements are my own, not those of the University of Otago
>
>
> --
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
>