-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Go
-
Labels:None
When importing test data (via sonar.go.tests.reportPaths property) or coverage data (via sonar.go.coverage.reportPaths) in a project with modules, the report will use the module name as a package in the json report. GoTestSensor/GoCoverSensor will not import such report correctly, failing to find the related test file.
WARN: Failed to find test file for package some/path and test TestSomething
We should support modules to resolve test names. See https://github.com/golang/go/wiki/Modules and https://github.com/SonarSource/sonar-go/issues/361
- is related to
-
SONARSLANG-522 [Go] - Fail to import test execution file located at the root of the project
-
- Closed
-
- links to