# Saturday, September 15, 2007

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 3:18:03 PM (Central Standard Time, UTC-06: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!
Comments are closed.