Viewing LCOV file in Windows
-
22-07-2019 - |
Question
Background: I have used JsTestDriverCoverage and generated a test coverage report for my Javascript unit tests. However it is in LCOV format. As a Windows user running on Windows 2003, I can't just read the file since its perl/lunix friendly.
Question: are there any ways to either convert the file to a more readable format (using command line), or using other applications to read the file?
Thanks.
Solution
Use genhtml to convert it to a set of HTML files. http://ltp.sourceforge.net/coverage/lcov/genhtml.1.php
OTHER TIPS
There is a genhtml port for windows here: http://code.google.com/p/jgenhtml/.
It's specifically designed to run cross platform - no problems with backslashes in the paths etc.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow