[cgiapp] Re: Testing Methods

Ron Savage ron at savage.net.au
Thu May 21 19:43:50 EDT 2009


Hi Folks

On Tue, 2009-05-19 at 22:02 -0400, Mark Stosberg wrote:
> On Wed, 13 May 2009 20:14:36 +0100
> Mike Tonks <fluffymike at googlemail.com> wrote:
> 
> > Hi All,
> > 
> > Can anyone recommend a method or point me to some examples for testing
> > CGI::App run modes?
> 
> In addition to using CGI_APP_RETURN_ONLY, you can also create a tiny sub-class
> of CGI::App-based module, so that html_tmpl_class returns 'HTML::Template::Dumper'.
> Then you'll get back a data structure of template instead of an HTML page, and
> this makes testing the values you send to the template easier.

And you can use HTML::Revelation to see the HTML rather than the
browser's rendering of the content.

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list