Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Running devel::cover recursively on directory with .t files

by Corion (Patriarch)
on Jun 02, 2013 at 09:21 UTC ( [id://1036566]=note: print w/replies, xml ) Need Help??


in reply to Running devel::cover recursively on directory with .t files

I guess you'll need to load Devel::Cover for the tests you run and not for the test harness you're using. Test::Harness says that $ENV{HARNESS_PERL_SWITCHES} is the way to go. So either set the $switches variable that Test::Harness alludes to exporting, or set HARNESS_PERL_SWITCHES=-MDevel::Cover before you run the harness.

Replies are listed 'Best First'.
Re^2: Running devel::cover recursively on directory with .t files
by david2008 (Scribe) on Jun 02, 2013 at 11:20 UTC
    Hi,

    I switched to test:harness and set the environment variable and it worked great.

    Thanks, David

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-19 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found