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.

ERROR: Error parsing coverage info for file coverage.xml: Invalid go coverage, expect 'mode:' on the first line. #77

@hieu29791

Description

@hieu29791

Description

ERROR: Error parsing coverage info for file coverage.xml: Invalid go coverage, expect 'mode:' on the first line

Steps to Reproduce

1. go get github.com/axw/gocov/gocov;
2. go get github.com/AlekSi/gocov-xml;
3. go test -coverpkg="./controllers" -coverprofile=cover.out;
4. gocov convert cover.out | gocov-xml > coverage.xml;

Content of your sonar-project.properties

sonar.sources=./
sonar.exclusions=cathay_cc_test.go,libraries/**/* 
export SONAR_SCANNER_OPTS="-Xmx1024m"
sonar.sourceEncoding=UTF-8
sonar.go.coverage.reportPaths=coverage.xml

It will help us to check how you configured the plugin.

Log of sonar-scanner related to the plugin

sonarqube

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