Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
No such thing as a small change
 
PerlMonks  

Re: Devel::Cover and prove

by jatill (Beadle)
on Jun 09, 2006 at 08:33 UTC ( [id://554486]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Devel::Cover and prove

I've seen that before, but I'm sure I'm missing something. If I put HARNESS_PERL_SWITCHES=-MDevel::Cover prove t at the command line, I get HARNESS_PERL_SWITCHES=-MDevel::Cover: Command not found.

Replies are listed 'Best First'.
Re^2: Devel::Cover and prove
by gellyfish (Monsignor) on Jun 09, 2006 at 08:39 UTC

    Fine, your shell doesn't understand that way of setting an environment variable before running a program. Simply put all you have to do is set the environment variable "HARNESS_PERL_SWITCHES" to "-MDevel::Cover" before running prove, I won't bother giving you the specific syntax but I am sure you can work it out for yourself.

    /J\

Re^2: Devel::Cover and prove
by jesuashok (Curate) on Jun 09, 2006 at 08:40 UTC
    Hi

    cover -delete HARNESS_PERL_SWITCHES=-MDevel::Cover make test
    The first command deletes any existing coverage database. On the second line we set an environment variable for Test::Harness, HARNESS_PERL_SWITCHES to a Perl command-line switch that imports Devel::Caller. This is all that's required of you. Each of your test programs will now run with Devel::Caller loaded and analyzing execution in the background.

    perl.com for more information.

    "Keep pouring your ideas"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://554486]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.