# Saturday, September 15, 2007
« Visual Studio 2008 (Orcas) Where is my O... | Main | My Samsung BlackJack »

Have you ever seen this? Scratch your head for hours? What the heck is wrong, all I want to see is my Code Coverage from my tests!!!!

No worries, I get asked this question everyday. Here is how to make sure you instrument Code Coverage during your tests.

Here is what you probably see:

NotWorking 

Go to the "Test" menu on your tool bar and "Edit your Test Run Configurations"

SelectTestMenu

Click on the "Code Coverage" List Item and select the artifacts to instrument:

SelectApp

Now rerun your test(s) and you will have code coverage :)

 

Thanks,

Ed K.

Tuesday, April 22, 2008 5:18:03 PM (Eastern Daylight Time, UTC-04:00)
LOL! You called by experience exactly with the new testing features in VS 2008. Guess, I'm too accustomed to NUnit and Resharper. Be nice if Microsoft provided a little bit better user experience.

Thanks for your write up! Exactly what I needed!
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview