sonar-golang icon indicating copy to clipboard operation
sonar-golang copied to clipboard

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

Open crystalyxiaoxianer opened this issue 3 years ago • 0 comments

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

crystalyxiaoxianer avatar Jul 01 '22 07:07 crystalyxiaoxianer