Hello. We are migrating to newest version of sonarqube 6.7.4 from 5.5 (5.5 -> 5.6 -> 6.7).
We had code coverage as 85% for sonarqube 5.5 - 5.6 versions (with proper versions of sonar C# plugin - 5.2-5.5 and scanners for msbuild 2.0-3.0)
But for 6.7.4 and 7.1 we have 19% coverage (sonarC# 6.7 - 7.3 and scammer for msbuild 4.0 - 4.3)
Coverage Tool: opencover 4.5.619
Test Tool: Nunit
Also, Report Generator shows proper results for each scan for nothing matter of sonarqube versions. It proves that opencover filters and exclusions by attribute work as expected.
In addition, I tried to use dotcover and ReportGenerator shows its results properly, too.
I found that a lot of modules are included to 6.7+ sonarqube, which were missed due to opencover filters and its exclusions in sonarqube 5.5-5.6
Finally, I tried to use sonar.coverage.exclusions for global/project/scanner level, but seems they don’t work at all. I still see all modules in coverage treemap.
Here is an issue in github with details https://github.com/SonarSource/sonar-scanner-msbuild/issues/539