Conditions Coverage Is Missing


After moving to Version 8.7.1 (build 42226) conditions coverage disappeared from our reports, when lines coverage still shows with no issues.
We are currently using dotCover and vsTests reports.
Temporary we have switched to OpenCover, and conditions coverage went back.

Our preferable way is to use dotCover or vstests reports, but we’ve run out of options to understand the problem.

No errors or warnings observed while calling sonar scanner end.

Hey there.

What version of SonarQube were you on before?

It’s my understanding that VsTest and dotCover simply do not support branch coverage, while OpenCover does. At one point we may have tried to make it work for VsTest and dotCover, but got heaps of feedback from the community that the experience was poor. You can read about it here:

Thank you for the link, this clarifies a lot!

Although it’s not clear why VsTest (dotCover) was abandon, if it’s results are not fully correct - it’s anyway fault of that tool and not sonar. But abandoning that support you didn’t let as a choice between “migrate to open cover” or “stay with VsTests and accept poor branch coverage quality”.
Also regarding dotCover, I strongly believe it does support (also not precise) statements / branch coverage. In reference page given by you, there is link to 2010! year where statements coverage was not supported. Of course dotCover evolved a lot since that time.