We have a number of projects that build and run tests via TeamCity. For these projects code coverage is calculated using dotCover.
In some cases it counts the lines twice and therefore shows only half the coverage.
The simplest example we have of this is a namespace with one class. This class is just a list of 6 constants. So it has 6 public static properties.
When we view the code it shows all 6 lines in green.
But in the statistics it reports 12 lines, since only (all) 6 are tested, the coverage is 50%.
We do not have this problem on all projects or all DLLs in a project, I have not been able to identify any pattern.
Does anyone know what could be causing this problem?