Much asked for and incredibly helpful but missing in Visual Studio 2010 and Microsoft Test Manager 2010 was code coverage for manual testing. In Visual Studio vNext (and Microsoft Test Manager vNext) it’s available out of the box.
To enable it, go to the test settings and select Code Coverage (there are some options but you don’t need to set anything).
You do need to create an automated build (if you aren’t doing automated builds now, you need to be doing it NOW – it’s the fastest way to improve quality). After you set the settings and associate the automated build, run your manual test. When you’re finished, close the Test Runner and click the Analyze Test Runs page.
Make sure you have the View: Manual runs selected and double-click your completed test run. This opens up the test run summary.
Expand the Attachments node and you will see a data.coverage file (note that you ran more than one .NET application during the test run you will see multiple files). Double-click it to open it. This will open Visual Studio to display the code coverage results.
This screenshot shows all of the methods in the executable and the covered and not covered blocks.
Double-clicking a method brings up the file with code coloring enabled.
Brilliant!
Now teams can ensure that they are covering all of their code with their functional tests as well as with their unit tests.






Pingback: October 21, 2011 – Learn TFS Daily | Learn TFS
Pingback: Links–10/31/2011 » ALM Rocks!