Manual Testing Code Coverage–Yeah!

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.


Now teams can ensure that they are covering all of their code with their functional tests as well as with their unit tests.

About the Author:


  1. […] Manual Testing Code Coverage – Yeah! from Jeff Levinson Jeff has a nice post showing how you’ll be able to enable and collect code coverage statistics in Dev11 for manual testing efforts. Code coverage for manual testing was promised many moons ago for MTM 2010 but it didn’t make it in the product, but you’ll be good to go in the next release. […]

  2. Links–10/31/2011 » ALM Rocks! October 31, 2011 at 5:58 am

    […] Manual Testing Code Coverage – Yeah! […]

Leave A Comment