[Catalyst] myapp_server.pl with code coverage

Russ Weight rw8cat at verizon.net
Thu Jul 31 17:56:52 BST 2008


Iain Hubbard wrote:
> On Thu, 2008-07-31 at 07:57 -0700, Russ Weight wrote:
>   
>> Has anyone successfully collected code coverage results from the server 
>> script? None of my attempts so far have succeeded in creating a valid 
>> code-coverage database.
>>     
>
> I have got it to work with a standard:
> "perl -d:Cover script/myapp_server.pl"
>
> The biggest thing to remember is to put an action in your app so that
> the server can shutdown cleanly. e.g.
>
> sub super_secret_exit : Local {
>     exit;
> }
>
> in your MyApp.pm
>   

That was the missing piece. Thanks!

- Russ



More information about the Catalyst mailing list