Sonarqube does not measure code coverage from TFS 2017 Build

I installed SonarQube and integrated it with our built-in TFS server, which works great, except for one feature - code coverage. For some reason, it does not detect any code coverage results, even if the second step of SonarQube collects .trx files.

The key with the included code type is enabled, and in TFS I get code coverage metrics:

enter image description here

However, SonarQube does not display coverage:

enter image description here

When I check the build logs, it seems that SonarQube is picking up the necessary file:

enter image description here

However, it simply does not process the coating. What could i miss?

TFS is version 15.112.26307.0

SonarQube - Version 6.5

+4
source share
1

MSBuild VSTS, - , .

, , /d:sonar.cs.vscoveragexml.reportsPaths="**\*.coveragexml" > SonarQube Scanner MSBuild - () .

. , Test Assemblies.

enter image description here

+5

Source: https://habr.com/ru/post/1683808/


All Articles