Results 1 to 2 of 2

Thread: [RESOLVED] Code Coverage in VS2010 - Files Missing Error

  1. #1

    Thread Starter
    Hyperactive Member Krokonoster's Avatar
    Join Date
    Jan 2010
    Location
    Cape Town
    Posts
    448

    Resolved [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)


  2. #2

    Thread Starter
    Hyperactive Member Krokonoster's Avatar
    Join Date
    Jan 2010
    Location
    Cape Town
    Posts
    448

    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
  •  



Click Here to Expand Forum to Full Width