Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open .coverage file

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

like image 738
Robert_Junior Avatar asked Nov 08 '13 06:11

Robert_Junior


People also ask

How do I open a .coverage report?

Coverage in the Coverage tool window The Code Coverage tool windows appears right after you run a configuration with coverage and displays the coverage report. If you want to reopen the Coverage tool window, select Run | Show Code Coverage Data from the main menu, or press Ctrl+Alt+F6 .

What is a .coverage file?

A COVERAGE file is a data file created by Visual Studio, a software development tool used for creating Windows programs and web applications. It contains a coverage report, which includes the proportion of your code that was tested by a coded test.

How do I convert .coverage to XML?

Please right-click your . coverage file to choose open with -> Notepad. Then it will shown with XML content in that file. And you also can change the .

How do I enable analyze code coverage in Visual Studio 2019?

On the Test menu, select Analyze Code Coverage for All Tests. You can also run code coverage from the Test Explorer tool window. Show Code Coverage Coloring in the Code Coverage Results window. By default, code that is covered by tests is highlighted in light blue.


2 Answers

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.

like image 60
jscott Avatar answered Sep 19 '22 15:09

jscott


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

like image 30
Joy George Kunjikkuru Avatar answered Sep 22 '22 15:09

Joy George Kunjikkuru