posts - 119, comments - 215, trackbacks - 82

My Links

News

View Anthony Trudeau's profile on LinkedIn

Add to Technorati Favorites

Article Categories

Archives

Post Categories

Image Galleries

Other Links

Thursday, June 17, 2010

Enabling Code Coverage in Visual Studio 2010

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

 

Posted On Thursday, June 17, 2010 10:06 PM | Feedback (5) | Filed Under [ Visual Studio ]

Powered by: