15

I have created a .coverage file using Vsperfmon.exe

I am currently using VS 2012 professional for web licensed edition. The .coverage result cannot be opened in VS Professional. After Googling I have come to know that VS Ultimate can open it

Rather than using VS Ultimate, is there any plugins for VS professional 2012 or any 3rd party solutions

Robert_Junior
  • 1,032
  • 1
  • 14
  • 37

2 Answers2

11

I've spent some time researching this today, as I'm in a similar situation; I have a .coverage file generated by TFS, and VS 2012 Pro, and I can't view the file. As far as I can tell, the answer is "You need VS Premium or Ultimate to view .coverage files."

I found https://github.com/danielpalme/ReportGenerator, which generates reports based on XML-formatted coverage files. It includes instructions for converting .coverage to XML (see https://github.com/danielpalme/ReportGenerator/wiki/Visual-Studio-Coverage-Tools), but that process depends on Microsoft.VisualStudio.Coverage.Analysis which isn't present in VS Pro.

Wojciech
  • 189
  • 9
jscott
  • 574
  • 4
  • 14
  • That is how i worked. But unfortunatly license for VS Ultimate expired.So I am in the middle of nowhere and because of that I dropped my idea of code coverage temporarly – Robert_Junior Dec 31 '13 at 06:07
  • If you're looking for a free (as in beer) solution, try OpenCover (https://github.com/sawilde/opencover/) with ReportGenerator. I was able to get a coverage report from my MSTest unit tests using those tools. However, I'm not sure I can integrate those with our Visual Studio Online build. – jscott Dec 31 '13 at 11:48
  • ReportGenerator has moved from CodePlex to GitHub. Instructions for converting .coverage to .xml are now here: https://github.com/danielpalme/ReportGenerator/wiki/Visual-Studio-Coverage-Tools – Mark Apr 24 '18 at 10:33
  • Even if you only have a Professional license, you may have Microsoft.VisualStudio.Coverage.Analysis.dll on your system. E.g. in \Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\TestPlatform or similar – Johan Franzén Dec 05 '18 at 12:33
2

Another tool I came to know to convert .coverage file to readable format is Visual Coverage .This converts into html

Joy George Kunjikkuru
  • 1,442
  • 13
  • 26