This is a simple helper tool for generating XML output in Cobertura format for CIs like Jenkins and others from go tool cover output.
Just type the following to install the program and its dependencies:
$ go get code.google.com/p/go.tools/cmd/cover
$ go get github.com/t-yuki/gocover-cobertura
gocover-cobertura
reads from the standard input:
$ go test -coverprofile=coverage.txt -covermode count github.com/gorilla/mux
$ gocover-cobertura < coverage.txt > coverage.xml
This tool is originated from gocov-xml by Alexey Palazhchenko (AlekSi)