4

I'm starting to use dotCover. I have a set of Debug compiled dlls + their pdbs. Then I've created a test project and executed resharper on it to see the coverage. What I'm getting is the coverage only of the unit test project instead of the whole coverage:

enter image description here

I expected to find on the coverage tab the dlls referenced from my unit tests and their coverage. Am i right? Maybe I'm missing something or am I doing something wrong?

afuzzyllama
  • 6,538
  • 5
  • 47
  • 64
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207

2 Answers2

5

You can try to uncheck the "Match coverage results with current project structure" button, otherwise dotCover shows coverage results for tests only from your current solution.

enter image description here

Matthew Lock
  • 13,144
  • 12
  • 92
  • 130
  • With dotCover 2018.2.3, I had to change another setting in order for assemblies located in a different solution to be shown in my Unit Test Coverage window. In the ReSharper menu, click Options.... Under dotCover, click on Filtering. Next, for Predefined coverage filter, select the radio button labeled Cover all excluding System and dotCover assemblies. – Sander Dec 10 '18 at 16:40
0

Did you check your project settings to makes sure you are creating and exporting PDBs?

I had the same problem, because I was set to release, and in my release settings I did not export PDBs. Once I moved back to debug mode, the dotCover showed the assemblies that I wanted.

Philtahu
  • 1
  • 1