sonar-golang
sonar-golang copied to clipboard
sonar.go.tests.reportPaths can not support xml report
Description
sonar.go.tests.reportPaths can not support xml report [Description of the issue]
Steps to Reproduce
- execute unittest: go test ./... -mod=readonly -coverprofile=cover.out | go-junit-report > unittest.xml
- execute sonar scanning: sonar-scanner -Dsonar.go.tests.reportPaths=unittest.xml
- 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