JacquesLucke / gcov-viewer

Show code coverage data generated with gcov in Visual Studio code.
MIT License
31 stars 9 forks source link

Consider supporting .json files as input to your viewer #28

Open KenSykes opened 1 month ago

KenSykes commented 1 month ago

Today you require gcov binary files to be produced and call "gcov --json-format" to get the code coverage data. The binary data format for gcov is private AFAIK and only produced by gcc.

Would you consider offering option to open a json file as well (following same format that --json-format provides)? This would enable your code coverage viewer to be more interoperable with other tools.

JacquesLucke commented 1 month ago

Do you have any specific tool in mind that outputs the same json format? Sounds like something that can be supported.

KenSykes commented 1 month ago

One that I am writing now :) I like that you are integrated in VS code and you show hit count information. Visual Studio's coverage viewer doesn't show hit counts in source code, for example.

JacquesLucke commented 1 month ago

In that case it would be best if you can create a patch for this extension because you are in the best position to test it.