perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: [mp2] Unit tests
Date Mon, 03 Jan 2005 17:39:21 GMT

> If Apache::ThirdPath wants to write a unit tests script, what would they
> look like?

if you use the Apache-Test framework then Apache2 is completely transparent.

in addition to the things joe pointed out, you can see Apache::SSLLookup

  http://search.cpan.org/~geoff/Apache-SSLLookup/

the parts you will be intersted in is the Makefile.PL, which is the only
place where Apache2 is required - if you didn't use it there then none of
the mp2 modules could be found for Makefile generation (such as
ModPerl::MM).  after that, Apache-Test takes care of everything behind the
scenes.  you can see this in a unit test such as this

http://search.cpan.org/src/GEOFF/Apache-SSLLookup-2.00_02/t/response/TestSSL/02new.pm

HTH

--Geoff

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


Mime
View raw message