Visual Studio unit test code coverage exception ".coverage file path is invalid or corrupted"

I am getting an error when running the unit test code. Everything works out, but when I run code coverage analysis in visual studio, it runs tests, but errors when creating coverages.

Also, this happens with solutions that I download that go through setting up code coverage, as well as solutions that I've been able to run in the past. I am launching visual studio 2012. Any ideas?

Mistake

Exception was thrown: Code coverage analysis engine threw an exception .. "path to file .coverage file" is invalid or corrupted.

I tried deleting everything in the coverage folder ... I was in update 4 too, to start with a downgrade like this doesn't make sense.

I tried adding local tests to solution items.

+3


source to share


1 answer


Reapply update 4 by selecting the restore option and see if that fixes the issue. I have seen other non-installation handicap updates due to pasting previous build versions. Reinstalling will update for Visual Studio.

If not, then create a basic console application as a basic test project and see if that happens. If it tries to start studio with these launch parameters



devenv.exe /log

devenv.exe /safemode

devenv.exe /resetskippkgs

devenv.exe /installvstemplates

devenv.exe /resetsettings

devenv.exe /resetuserdata

      

Check the log for possible problems.

+1


source







All Articles