SonarGo not showing unit test results


SonarQube does not show the unit test results as seen from the attached screenshots:

The logs have also been attached:

[file removed by moderator]

Following are the versions of the relevant tools:

SonarQube Version 6.7.5 (build 38563)
SonarQube Scanner 2.8

Please let me know if there is any further information I can provide.


looking at the logs I am not able to determine what could be the issue. Would it be possible to create small project which reproduces the problem? It’s probably related to the directory structure of the project and the heuristics we are trying to find test files corresponding to the packages.
Can you verify that the file containing this test
20:57:31.719 WARN: Failed to find test file for package and test TestDiffSchedules

is visible in SonarQube?

Hi Tibor,

The provided screenshot contains the project that reproduces the problem.

Can you let me know where I can find the warning message in SonarQube?


sorry, I will not be able to help you just with screenshot. Can you create small project demonstrating the same issue?

Do you use Go modules?

Im still experiencing this problem. i did provide both test execution report and test coverage report but still have no unit test count showing.

i use the sonar test project:

and replace those parameters on and ran - go test -json > report.json and - go test -coverprofile=coverage.out

and use scanner to point on my local sonarqube server. Note: i exclude the Go Meta Linter report

am i missing something please help thanks

Hello, and welcome to the community!

In this post, you will find plenty of information, with examples of configurations that worked for others, I think it might be helpful to you!