Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Devel::Cover for myfile.pl with different command-line input arguments

by TomDLux (Vicar)
on Aug 23, 2016 at 15:48 UTC ( [id://1170231]=note: print w/replies, xml ) Need Help??


in reply to Devel::Cover for myfile.pl with different command-line input arguments

The common usage of Devel::Cover is to determine whether the tests cover all the code. So why not run your code from a set of tests, with each using different combinations of command line options? That way, you can run the tests again any time you make a major change.

It's one thing to say, 'we used the --verbose options, therefore line 67 was invoked'; how does the --verbose option modify data structures? Is there some side effect you can verify in test?

Rather than running the whole program, is it possible to treat it as a module, and just invoke one subroutine at a time? That makes testing a lot simpler.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

  • Comment on Re: Devel::Cover for myfile.pl with different command-line input arguments

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2025-07-08 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.