[Catalyst] myapp_server.pl with code coverage

Iain Hubbard iain.hubbard at gmgrd.co.uk
Thu Jul 31 16:43:41 BST 2008

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 {

in your MyApp.pm


GMG Regional Digital is part of the Guardian Media Group plc.

CONFIDENTIALITY NOTICE. The information contained in this e-mail is intended only for catalyst at lists.scsys.co.uk. It may contain privileged and confidential information that is exempt from disclosure by law and if you are not an intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, you may notify us by telephone on 44 (0)161 832 7200. E-mail transmission cannot be guaranteed to be secure or error-free. The sender (iain.hubbard at gmgrd.co.uk) therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

Scanned by MailDefender - managed email security from intY - www.maildefender.net

More information about the Catalyst mailing list