Berov Berov - 2 months ago 6
Perl Question

How to use Devel::Cover with prove?

I see there are some similar questions here and on http://www.perlmonks.org but I still do not get it.
Imagine I have a project with a 'lib/' and a 't' directories. I run my tests with 'prove':

$ cd $PROJECT_ROOT
$ prove ./*.t


I want to get a report in html for one or more files in the 'lib/' directory. I do not want reports for the files in the 't' directory.
A simple example should be enough. Thanks

Answer
  1. perl Makefile.PL or perl Build.PL
  2. cover -test
Comments