Search code examples
windowslinuxcygwincode-coveragelcov

Running genhtml using cygwin Perl.exe in Windows


I'm trying to run genhtml using perl.exe from Cygwin in Windows.

I have installed cygwin and placed genhtml in the bin directory of cygwin. I went to that directory and used the command line in Windows:

perl genhtml abc.dat

where abc.dat is the name of the lcov file for genhtml.

However I got an error saying:

Reading data file abc.dat
genhtml: ERROR: cannot read file abc.dat!

I tried even with a blank file, but the same error returned. How do I get around this problem?

Thanks.


Solution

  • It turned out that I do need to go to cygwin and run chmod 777 in the locationm of the .dat file in order to be able to run it.