[cgiapp] Re: Testing Methods
George Hartzell
hartzell at alerce.com
Thu May 21 17:01:44 EDT 2009
Michael Peters writes:
> Mark Stosberg wrote:
>
> > 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.
>
> Not to take too much away from this, but it doesn't test your template logic.
> Now most of my templates are very simple, it's still logic and can therefore
> have bugs.
>
There's:
http://search.cpan.org/~hartzell/Test-WWW-Mechanize-CGIApp-0.05/
g.
More information about the cgiapp
mailing list