|
-
May 19th, 2010, 10:43 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Code Coverage in VS2010 - Files Missing Error
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)
-
May 19th, 2010, 10:48 AM
#2
Thread Starter
Hyperactive Member
Re: Code Coverage in VS2010 - Files Missing Error
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%!!!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|