webleyson / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Windows-friendly file format for JsTestDriverCoverage report #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently JsTestDriverCoverage creates reports in LCOV format (or a dat 
file), which is easily readable in linux environment.  However it is a bit 
difficult for Windows environment.

I would like to see the test coverage report generated in a Windows-
friendly format.  For example, html, xml, or even CSV file.  Also a 
coverage % would be nice.

Or alternatively if anyone has already done/know how to convert the report 
into windows format, I would like to know how to do so.

Thanks.

Original issue reported on code.google.com by lighteni...@gmail.com on 1 Dec 2009 at 5:31

GoogleCodeExporter commented 9 years ago
The genhtml tool of the lcov package is a perl script so you should be able to 
run it
on windows if you install the perl interpreter.

Original comment by toc...@gmail.com on 8 Dec 2009 at 11:44

GoogleCodeExporter commented 9 years ago
I would prefer to not having to install extra software (like perl interpreter) 
to 
just have to read the report.  It adds extra steps in the automation process.

However this is not the only problem.

Escape chars are different in Windows and linux.  The coverage tool does not 
recognise the escape characters that were generated by some Windows 
applications 
(e.g. VS.Net), hence it kept on returning error on the first character (see 
issue 
50).  That is the reason why I suggested it would be nice to have a 
windows-friendly 
file format for the report.

Original comment by lighteni...@gmail.com on 13 Dec 2009 at 11:40

GoogleCodeExporter commented 9 years ago
There is nothing inherently windows unfriendly about the LCOV format. What was 
lacking was tools. That has changed, now you can use this on windows: 
http://code.google.com/p/jgenhtml/

No Perl interpreter required, handles windows file separator, full automation 
support with Ant or Maven or just plain old Java.

Original comment by ricksbro...@gmail.com on 28 Jan 2013 at 6:49