Visual Studio 2012 RC – What’s new in Code Coverage
Jun 19, 2012Importer
Summary
This post details the "visible" changes to the code coverage tool in Visual Studio 2012 RC. Key improvements include: no .testsettings overheads (dynamic, runtime instrumentation), support in the Test Explorer window for running tests and getting coverage data simultaneously, first-class support for native code (including mixed solutions), a leaner and self-contained .coverage file, support in the new vstest.console.exe test executor with a "/enablecodecoverage" switch, and integration with Team Build via the "Enable Code Coverage" option in build definitions when using the Visual Studio Test Runner. It also notes support for .NET/C++ custom unit test adapters, with a caveat for adapters using runtime magic like .NET profiler interfaces.