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

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

 

Print | posted on Thursday, June 17, 2010 10:06 PM | Filed Under [ Visual Studio ]

Feedback

Gravatar

# re: Enabling Code Coverage in Visual Studio 2010

I ma not getting Data & Diagnostic option in VS 2010
Please tell me how i get that option to enable the code coverage
11/9/2010 12:34 AM | Mahesh
Gravatar

# re: Enabling Code Coverage in Visual Studio 2010

I ma not getting Data & Diagnostic option in VS 2010
Please tell me how i get that option to enable the code coverage
is it required to instal any external tool for it?
2/9/2012 8:57 AM | Yahsita
Gravatar

# re: Enabling Code Coverage in Visual Studio 2010

Code coverage is not available in all editions of Visual Studio.
2/9/2012 9:09 AM | Anthony Trudeau
Gravatar

# re: Enabling Code Coverage in Visual Studio 2010

Unable to see Data & Diagnostic option in VS2010(i.e. Edit Test Testing->Local Setting). Is there any external tool available for this or enable this option?
5/16/2012 12:50 AM | Sakthivel Arumugam
Gravatar

# re: Enabling Code Coverage in Visual Studio 2010

Code Coverage will not enable in Professional edition, try with in Ultimate version. We can use this.
5/16/2012 5:13 AM | Sakthivel Arumugam
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: