Berov Berov - 1 year ago 136
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

Answer Source
  1. perl Makefile.PL or perl Build.PL
  2. cover -test
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download