Not able to generate the code coverage result using Devel::Cover
devel-cover, perl
Solution
After running `perl -MDevel::Cover c4rgr.pl`, run the cover command. For example:
cover -report html -outputdir cover_report
Problem
I tried to find code coverage for a `c4rgr.pl` test file with `Devel::Cover`. I have a `.pm` module sitting in the same area. I am using `perl -MDevel::Cover c4rgr.pl`, which generates a `cover_db` and has a `runs` subdirectory inside. Inside the `runs` subdirectory, a versionated directory is created every time I run the `Cover` command and a `cover.13` is obtained. This `cover.13` file (I think) has the raw data for code coverage results. Still, I am unable to get the test results in a HTML output format or on the Terminal screen. This is what I do: Run the `perl -MDevel::Cover c4rgr.pl` Here, the `c4rgr.pl` uses a .pm module which is sitting in the same area. When I run above command, it runs the test file but no test coverage output as shown in `Devel::Cover` HTML output is obtained. Nevertheless, the `cover.13` file is created every time. `Cover.13` <- `1401378982.24872.12631` <- runs <- `cover_db` . Can someone tell me how to get the HTML file, please? I was able to run a dummy test with the same features and generate a HTML file. But with my actual test, it does not. Or is there a way to convert the `cover.13` file to HTML that is not being done in my case?