Geeks With Blogs

News

View Anthony Trudeau's profile on LinkedIn

Add to Technorati Favorites


Anthony Trudeau

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 Visual Studio | Back to top


Comments on this post: Enabling Code Coverage in Visual Studio 2010

# re: Enabling Code Coverage in Visual Studio 2010
Requesting Gravatar...
I ma not getting Data & Diagnostic option in VS 2010
Please tell me how i get that option to enable the code coverage
Left by Mahesh on Nov 09, 2010 12:34 AM

# re: Enabling Code Coverage in Visual Studio 2010
Requesting Gravatar...
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?
Left by Yahsita on Feb 09, 2012 8:57 AM

# re: Enabling Code Coverage in Visual Studio 2010
Requesting Gravatar...
Code coverage is not available in all editions of Visual Studio.
Left by Anthony Trudeau on Feb 09, 2012 9:09 AM

# re: Enabling Code Coverage in Visual Studio 2010
Requesting Gravatar...
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?
Left by Sakthivel Arumugam on May 16, 2012 12:50 AM

# re: Enabling Code Coverage in Visual Studio 2010
Requesting Gravatar...
Code Coverage will not enable in Professional edition, try with in Ultimate version. We can use this.
Left by Sakthivel Arumugam on May 16, 2012 5:13 AM

Your comment:
 (will show your gravatar)


Copyright © Anthony Trudeau | Powered by: GeeksWithBlogs.net