# SonarGo not able to follow path to test results

**URL:** <https://community.sonarsource.com/t/sonargo-not-able-to-follow-path-to-test-results/2661>\
**Category:** SonarQube Server / Community Build\
**Tags:** tests, go, scanner\
**Created:** [September 18, 2018, 8:05am UTC](https://community.sonarsource.com/t/sonargo-not-able-to-follow-path-to-test-results/2661 "2018-09-18T08:05:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhavith](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bhavith/32/928_2.png) [@bhavith](https://community.sonarsource.com/u/bhavith)\
**Post date:** [September 18, 2018, 8:05am UTC](https://community.sonarsource.com/t/sonargo-not-able-to-follow-path-to-test-results/2661/1 "2018-09-18T08:05:28Z")

</div>

Version Used: 7.1.0.11001  
Licence : Developer Edition  
Plugins:  
Branch 7 (build 11001)  
SonarGo 1.1.0 (build 1612)  
Sonar-Scanner 3.2.0.1227

What we are trying to achieve:  
We would like to get test results & coverage for Go application to be captured in SonarQube using SonarScanner.

Issue:  
Test coverage is getting capture but test results are not.

Scenario 1:  
Tests are executed at each module level using loops and individual test report generated for each module.  
The parameter -Dsonar.go.tests.reportPaths has value \*\*/report.json.

We are getting the below error in the analysis log and no results available in SonarQube.  
ERROR: Coverage report can’t be loaded, file not found: ‘/home/core/workspace/xxx-xxxxxxxxxxxxxxxxx/\*\*/report.json’, ignoring this file.

Scenario 2:  
Tests are executed at the root level. A single test report is available at the project root.  
The parameter -Dsonar.go.tests.reportPaths has value src/aaa/report.json.

We are getting the below warning in the analysis log and no results available in SonarQube.  
WARN: Failed to find test file for package aaa/bbb/ccc and test dddd/eee

Thanks in advance!!!

Bhavith

---

<div class="post-metadata">

**Author:** ![Lena](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/lena/32/66719_2.png) [@Lena](https://community.sonarsource.com/u/Lena)\
**Post date:** [June 25, 2019, 9:33am UTC](https://community.sonarsource.com/t/sonargo-not-able-to-follow-path-to-test-results/2661/2 "2019-06-25T09:33:24Z")

</div>

In Scenario 1 you are using wildcards in the value for parameter `**/report.json`. They are not supported by Go analyzer.

Concerning the error in Scenario 2, are you importing in SonarQube test files? You should do it with `sonar.tests` property (see [https://docs.sonarqube.org/latest/analysis/analysis-parameters/](https://docs.sonarqube.org/latest/analysis/analysis-parameters/))
