Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
crystalyxiaoxianer opened this issue Jul 1, 2022 · 0 comments
Open

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

crystalyxiaoxianer opened this issue Jul 1, 2022 · 0 comments

Comments

@crystalyxiaoxianer
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant