Microsoft

Part 3: Unit testing with Traits and code coverage in Visual Studio 2012 using the TFS Build – and the new NuGet adapter approach

Jun 11, 2013Anisha Pindoria
Part 3: Unit testing with Traits and code coverage in Visual Studio 2012 using the TFS Build – and the new NuGet adapter approach
SummaryAI, from the source post

This post details how to integrate unit tests with TFS Build, focusing on test case filtering using traits and enabling code coverage. It explains how traits in Visual Studio map to TFS Build properties for test case filtering, and how to handle different test frameworks (MSTest, NUnit, XUnit, Native C++) by defining multiple test runs with specific assembly filters. It also covers the straightforward process of enabling and customizing code coverage reporting within TFS Builds, including how to access and interpret the coverage results in Visual Studio.

More from the Visual Studio Unit Testing Framework trail