Unable to see the Unit Test count in Sonarqube project Dashboard despite adding path to reports

Hey there, I am bit confused on how to show the Unit tests count in sonarqube project dashboard, I have this sonar-project.properties file, need help verifying if I missed anything

sonar.sources=.
sonar.exclusions=**/*_test.go,**/*_generated*.go,**/*_generated/**,**/vendor/**
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/*_generated*.go,**/*_generated/**,**/vendor/**
sonar.go.tests.reportPaths=reports/go-test.native.txt,go-test.native.json,reports/go-test.xunit.xml
sonar.go.coverage.reportPaths=reports/go-coverage.native.out
  1. Does Sonarqube fetch the unit test count from the Report provided?
  2. Is this key correct for providing unit test reports to Sonarqube “sonar.go.tests.reportPaths”

This is the xml based report we’re generating for our Go project.

<testsuites tests="3">
<testsuite name="gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/constant" tests="0" failures="0" errors="0" id="0" hostname="runner-t2a4qm4x-project-10219-concurrent-0-2c645l64" time="0.000" timestamp="2025-08-07T03:39:16Z">
<system-out>
<![CDATA[ gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/cmd coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/config coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/helper/batch coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/helper/database coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/helper/database/mocks coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/helper/database/postgres coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/helper/kafka coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/helper/secretmanager coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/helper/secretmanager/mocks coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/app coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/dao coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/dao/mocks coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/listeners coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/producer coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/queryhelper coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/repository coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/repository/mocks coverage: 0.0% of statements gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/common/validation coverage: 0.0% of statements ]]>
</system-out>
</testsuite>
<testsuite name="gitlab.corp.zscaler.com/zscaler/dspm/alert-engine/internal/evaluator" tests="3" failures="0" errors="0" id="1" hostname="runner-t2a4qm4x-project-10219-concurrent-0-2c645l64" time="0.010" timestamp="2025-08-07T03:39:16Z">
<properties>
<property name="coverage.statements.pct" value="23.10"/>

Hi,

Welcome to the community!

Off-hand your analysis parameters look correct. Except maybe for the format(s). The coverage parameter is expecting an XML report. The docs aren’t fulsome on this subject, but I suspect the execution parameter expects that too. Can you try it?

And could you post your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann