On 12/12/2003, at 8:34 AM, 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.
You need to read further. You can run the test on the server side and then send only the ok/not oks to the client
http://perl.apache.org/docs/general/testing/testing.html#Developing_Response_only_Part_of_a_Test
__________________________________________________________________ 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
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html