This is a simple helper tool for generating XML output in Cobertura format for CIs like Jenkins and others from github.com/axw/gocov output.
Just type the following to install the program and its dependencies:
$ go get github.com/axw/gocov/...
$ go get github.com/AlekSi/gocov-xml
-pwd
using current path as base path.-b /base/path
specified base path
gocov-xml
reads from the standard input:
$ gocov test github.com/gorilla/mux | gocov-xml > coverage.xml
$ gocov test github.com/gorilla/mux | gocov-xml -pwd > coverage.xml
$ gocov test github.com/gorilla/mux | gocov-xml -b /base/path > coverage.xml