VS2010 code coverage does not work

I have a solution in VS2010 where I cannot get code coverage, I always get an error

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

I installed everything as usual, therefore, in the test settings, I turned on the "Code coverage" checkbox on the "Data and diagnostics" page and selected a DLL for testing. I also added "Re-signing the key file" when we sign our assemblies. I don’t know of any other things that prevent me from getting coverage information by manually comparing the “Local.testsettings” for this solution with the files from other working solutions, there were no problems.

Any ideas what could be the reason and how to make it work?

Thank you in advance

G.

+4
source share
1 answer

Good,

For some reason, the test settings were changed from "Local (local.testsettings)" to "Trace and Test Impact (traceandtestimpact.testsettings)". I don’t know why this happened, now it works again ...

+2
source

All Articles