Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-450

[Go] - Support modules when importing test and coverage reports.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Go
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tibor.blenessy Tibor Blenessy
              • Votes:
                5 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: