Open hieu29791 opened 5 years ago
Could you solve it? I am facing the same issue
I got rid of the error by sending the cover.out
file.
@juliorenner the docs say you have to use xml format:
For coverage metrics you must have one or multiple coverage.xml (cobertura xml format) files.
The .out file generated by go tool cover
is not xml. For instance:
go tool cover -func cover.out -o /go/src/foo/bar/coverage/api.cov
generates:
foo/bar/api/dao/dao.go:46: AccountExist 85.7%
[etc]
Description
ERROR: Error parsing coverage info for file coverage.xml: Invalid go coverage, expect 'mode:' on the first line
Steps to Reproduce
Content of your sonar-project.properties
It will help us to check how you configured the plugin.
Log of sonar-scanner related to the plugin