tree: 012b31f51588de74838d33030ba74edd6e184846 [path history] [tgz]
  1. testdata/
  2. .gitignore
  3. cobertura.go
  4. gocover-cobertura.go
  5. gocover-cobertura_test.go
  6. LICENSE
  7. profile.go
  8. README.google
  9. README.md
go/src/github.com/t-yuki/gocover-cobertura/README.md

go tool cover XML (Cobertura) export

This is a simple helper tool for generating XML output in Cobertura format for CIs like Jenkins and others from go tool cover output.

Installation

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

Usage

gocover-cobertura reads from the standard input:

$ go test -coverprofile=coverage.txt -covermode count github.com/gorilla/mux
$ gocover-cobertura < coverage.txt > coverage.xml

Authors

Thanks

This tool is originated from gocov-xml by Alexey Palazhchenko (AlekSi)