Sonarqube not measuring code coverage from TFS 2017 Build

Viewed 1551

I've set up SonarQube and integrated it with our on-prem TFS build server, which is working fine except for one feature - code coverage. For some reason, it's not detecting any code coverage results even though the second SonarQube step is picking up .trx files.

The "code coverage enabled" tickbox is ticked and within TFS, I am getting code coverage metrics:

enter image description here

However, SonarQube isn't displaying coverage:

enter image description here

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

enter image description here

However it's just not processing coverage. What could I have missed?

TFS is Version 15.112.26307.0

SonarQube is version 6.5

1 Answers
Related