Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Team City and Visual Studio 2010 and Coverage Tool

In my team we shall use Visual Studio 2010 and .NET 4.0 as soon as possible and I have a question regarding VS 2010 and Team City. In VS2010 there is a simple tool to measure mstest coverage. Question: Is it possible to read the result of ms-Coverage from team city? If yes, how do we set up that configuration.

best Regard Henrik

like image 326
Henrik Avatar asked Mar 08 '10 13:03

Henrik


People also ask

How do I use TeamCity with Visual Studio?

Installation and StartIn your TeamCity web interface, choose My Settings and Tools under your username in the top right corner. Then, in the TeamCity Tools section on the right, click the Visual Studio Add-in download link. Download any of compatible JetBrains . NET products, e.g. ReSharper or dotCover.

How do I install Visual Studio code coverage?

Starting in Visual Studio 2022 Update 2, you can enable faster code coverage test results by selecting Tools > Options > Environment > Preview Features, then selecting Code coverage experience improvements, and then restarting Visual Studio.

How do I check Visual Studio coverage?

Set Up Code Coverage using the Command line dll > Sign the instrumented DLLs using the command Sn.exe -R < dll > <file_name. snk> Start capturing Code Coverage using the command “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64\VSPerfCmd.exe /start:coverage /output:c:\test\Output.


1 Answers

Yes, you can use the vsinstr.exe and vsperfmon.exe command lines tools to generate coverage data. See Code Coverage with Visual Studio.

Once you have the code coverage files, you need to get TeamCity to report the data. This article should get you started, in particular, look under the "Configure TeamCity to display statistics" header.

like image 156
Judah Gabriel Himango Avatar answered Sep 28 '22 06:09

Judah Gabriel Himango