Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing Code Coverage Results outside of Visual studio

I've got some unit tests, and got some code coverage data. Now, I'd like to be able to view that code coverage data outside of visual studio, say in a web browser. But, when I export the code coverage to an xml file, I can't do anything with it. Are there readers out there for this? Do I have to write an xml parser and then display it how I want it (seems like a waste since visual studio already does this.) Seems kinda silly to have to take a screenshot of my code coverage results as my "report" Suggestions?


2 Answers

This tool https://github.com/danielpalme/ReportGenerator quickly generate Html reports from coverage file. Works quite well and does not require complex activities, can be easily included in the build process.

like image 93
massimogentilini Avatar answered Sep 05 '25 15:09

massimogentilini


There is this tool called Visual Coverage (https://github.com/jsargiot/visual-coverage). It takes a .coverage file as input and can export it to clover or html.

The page on github shows how to execute and if you're curious you can take a look at the code...

like image 33
Luke Syvil Avatar answered Sep 05 '25 16:09

Luke Syvil