Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Looking for help for unit tests and code coverage on an existing perl script

by tizatron (Initiate)
on Feb 03, 2014 at 22:55 UTC ( #1073275=note: print w/replies, xml ) Need Help??


in reply to Re: Looking for help for unit tests and code coverage on an existing perl script
in thread Looking for help for unit tests and code coverage on an existing perl script

Ken,

Your points on Test::Output are well taken. I was experimenting with that module and did get some results via sterr_is and stdout_is.

The 'is' statement only evaluates a return, so your patterns using Test::Output are much more useful in this context.

What I really need out of the test suite is code coverage. I pulled down your code and ran the tests. I tried to run something like:

$ perl -MDevel::Cover pm_script_testing.pl $ cover
I was able to spit out some code coverage numbers. I am going to try spend some time on this path and see I can get it to fly on my test script. But I need to dig in a little more and see if Test::Output aligns with Devel::Cover like I hope it does.
  • Comment on Re^2: Looking for help for unit tests and code coverage on an existing perl script
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2020-03-28 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (167 votes). Check out past polls.

    Notices?