Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 lurking in the Monastery: (4)
As of 2024-04-19 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found