Enabling Code Coverage in Visual Studio 2010

Posted by Anthony Trudeau on Geeks with Blogs See other posts from Geeks with Blogs or by Anthony Trudeau
Published on Fri, 18 Jun 2010 03:06:54 GMT Indexed on 2010/06/18 3:13 UTC
Read the original article Hit count: 378

Filed under:

You'll quickly find out that enabling code coverage in Visual Studio 2010 has changed.  With the new version you enable this functionality through the test settings.  The following steps will enable code coverage:

  1. Open the local.testsettings which you can access from Test -> Edit Test Settings -> Local (local.testsettings)
  2. Select Data and Diagnostics from the list
  3. Select the Enabled checkbox on the Code Coverage row
  4. Double-click the Code Coverage row
  5. Select the assemblies you want to instrument
  6. Specify a re-signing key file if your assemblies are strong-named
  7. Click OK
  8. Click Apply
  9. Click Close

 

© Geeks with Blogs or respective owner