Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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

by talexb (Chancellor)
on Feb 14, 2007 at 19:33 UTC ( #600053=note: print w/replies, xml ) Need Help??

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

Outstanding! I changed the httpd.conf line to

SetEnv PERL5OPT "-MDevel::Cover=-dir,/opt/FES/data"

And it Just Worked. The time before that, I had a space instead of the comma. Crazy stuff, man. I think I'm gonna write to the author and pass that along. Thanks again!

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^3: Setting Devel::Cover options for a web application
by chargrill (Parson) on Feb 14, 2007 at 19:57 UTC

    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

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2023-06-11 01:27 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (40 votes). Check out past polls.