Berov Berov - 1 month ago 5
Perl Question

How to use Devel::Cover with prove?

I see there are some similar questions here and on 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':

$ 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

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