Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Setting Devel::Cover options for a web application

by chargrill (Parson)
on Feb 14, 2007 at 19:57 UTC ( #600058=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Setting Devel::Cover options for a web application
in thread Setting Devel::Cover options for a web application

I'd suggest another addition to your httpd.conf:

<IfDefine COVERAGE> SetEnv PERL5OPT "-MDevel::Cover=-dir,/opt/FES/data" </IfDefine>

Add a new section in your apachectl (or however you launch apache):

startcover() { echo -n $"Starting apache with code coverage: " $http_bin $other_options -DCOVERAGE }

Adjusting where necessary for different apachectl's (ours is heavily customized, but anyone reasonably familiar with apache administration ought to be able to take it from here).

And then just invoke it thusly:

$ apachectl startcover


--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)


Comment on Re^3: Setting Devel::Cover options for a web application
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://600058]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-07-14 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (254 votes), past polls