Code Coverage is not enabled for this test run
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:
Go to the “Test” menu on your tool bar and “Edit your Test Run Configurations”
Click on the “Code Coverage” List Item and select the artifacts to instrument:
Now rerun your test(s) and you will have code coverage :)
Thanks,
Ed K.
Originally authored by Ed Kisinger at https://edsquared.com/2007/09/16/Code+Coverage+Is+Not+Enabled+For+This+Test+Run.aspx