Ian Docherty wrote:
> Is it possible to do coverage tests in a Catalyst application? If so
> how? I can't find any references that help.

Catalyst apps aren't special -- do coverage tests like you would with
any other perl module:

    $ cover -delete
    $ HARNESS_PERL_SWITCHES=-MDevel::Cover make test
    $ cover

If you want "coverage" and not test coverage (why?), then just do

    $ perl -MDevel::Cover myapp_server.pl
    <request stuff>
    $ cover

Regards,
Jonathan Rockway

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to