![]() Since I am using MSBuild to run the build, I encapsulated the code in an MSBuild task which you can find over here at the MSDN Code Gallery. The library is contained in the .dll assembly, which can be found in the Visual Studio 2008 Team System installation folder (usually in C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies). So all I had to do was to add an extra step in the build process to invoke that library and do the conversion. ![]() NET API that can be used to convert the content of code coverage files produced by Visual Studio into XML. Pheeew! However, I quickly found out that Visual Studio’s test runner produces code coverage output in a binary proprietary format while CruiseControl.NET uses XML in order to generate its reports. Following that, you can install the extension from the Marketplace. Yeah, you guessed it right, this is the type of code coverage performed by most IDEs (. The very first thing is to download it from the VS Code website. The most basic type of code coverage is the Statement Code Coverage. I figured that wouldn’t be too hard, all I had to do in my build script was to invoke Visual Studio’s test runner’s executable (usually found in C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe) passing an option to enable code coverage profiling, and grab the output in a file that CruiseControl.NET would later use to produce the build report. Visual Studio Code is available for most operating systems, including Windows and Mac. Telerik JustMock supports and integrates seamlessly with the Visual Studio code coverage tool. ![]() One of the most popular code coverage tools is the Visual Studio code coverage feature that comes with an enterprise flavor. I usually care about code coverage when running unit tests, so I decided to integrate the code profiling tool included in Visual Studio Team System as part of my build process, in order to produce a code coverage report with each build. Code coverage is a measurement of how many lines of code are executed when a unit test suite is executed. Recently I had a project where I was using Microsoft Visual Studio 2008 Team System for development and CruiseControl.NET for doing continuous integration.
0 Comments
Leave a Reply. |