Coverage analysis: Processing coverage shapshots: failed: The given key was not present in the dictionary.

Completed

I'm using Resharper Ultimate 2018.1 and Visual Studio 2017 Community.

I am able to run my unit tests and view their results. When I attempt to view coverage results I get an error from the Unit Test Session, the error is below.

Coverage analysis: Processing coverage snapshots: 'C:\Users\user\AppData\Local\Temp\ssd.Tugohor.tmp' failed: The given key was not present in the dictionary.

I have uninstalled and reinstalled both resharper and dotCover. I have read that there is/was an option in the testing session to drop all results and that fixes this issue, however that feature seems to be in the coverage view which will not populate due to this error.

 

2 comments
Comment actions Permalink

try not to run tests on several instances of Visual Studio. Run it in ONLY one. It is something with how unit testing in Resharper is implemented.

0
Comment actions Permalink

In ReSharper 2018.1.x  "Drop coverage data" button is situated on the toolbar in the Unit Test Coverage window:


If it doesn't help, please do the following:

  • close your solution
  • go to %temp%\JetBrains\ReSharperPlatformVs[N]\vAny_[XXX]\CoverageData folder
  • find _[YourSolutionWithBrokenCoverage].[XXX] folder and remove it.
  • reopen the solution and repeat coverage analysis
0

Please sign in to leave a comment.