PDA

Click to See Complete Forum and Search --> : VS 2010 [RESOLVED] Code Coverage in VS2010 - Files Missing Error


Krokonoster
May 19th, 2010, 10:43 AM
Though my unit tests runs just fine (I'm just using MS Test, so can't blame using 3rd party tools) I get the following error when trying to view Code Coverage:

Cannot find any coverage data (.coverage or .coveragexml) files. Check test run details for possible errors.

I did check "Code Coverage" in my test settings (Test->Edit Test Settings->Local).

Weird, it worked fine in VS 2008. (Though this is a whole new project)

Krokonoster
May 19th, 2010, 10:48 AM
Got it, sorry.

You are supposed to double click Code Coverage to get to it's settings (without any indication you should do so - Dang....sometimes I don't know what MS's developers are thinking.

If anyone else get stuck:
Test -> Edit Test Settings -> Local
In the test settings dialog, click "Data and Diagnostics"
Ensure "Code Coverage" are checked, and double-click on it
Check of the dll's you want code coverage enabled for.

Run your test..you should now have code coverage (uurgh..mine is at 32%!!!)