Are there any good (and preferably free) code coverage tools out there for Perl?
With that being said it is generally accepted that 80% coverage is a good goal to aim for. Trying to reach a higher coverage might turn out to be costly, while not necessary producing enough benefit. The first time you run your coverage tool you might find that you have a fairly low percentage of coverage.
Gcov is a source code coverage analysis and statement-by-statement profiling tool. Gcov generates exact counts of the number of times each statement in a program is executed and annotates source code to add instrumentation. Gcov comes as a standard utility with the GNU Compiler Collection (GCC) suite.
Test Coverage Tools can be defined as the tools that take care of the Testing process's important objective. It evaluates the range of test execution carried out against functional and non –functional requirements provided for the tested software.
As usual, CPAN is your friend: Have a look at Devel::Cover
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With