Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

sonar.go.tests.reportPaths can not support xml report #78

@crystalyxiaoxianer

Description

@crystalyxiaoxianer

Description

sonar.go.tests.reportPaths can not support xml report
[Description of the issue]

Steps to Reproduce

  1. execute unittest: go test ./... -mod=readonly -coverprofile=cover.out | go-junit-report > unittest.xml
  2. execute sonar scanning: sonar-scanner -Dsonar.go.tests.reportPaths=unittest.xml
  3. got a mistake:
    INFO: Sensor XML Sensor [xml]
    INFO: 1 source file to be analyzed
    WARN: Unable to analyse file file:///builds/shopee/ai-engine-platform/rcmdplt-rerank/unittest.xml;
    INFO: 1/1 source file has been analyzed

go version: 1.17.2
sonar-scanner: sonar-scanner-4.6.2.2472-linux
sonarqube: 8.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions