Help us shape the future of Go! Take the 2026 Go Developer Survey

gocover-cobertura

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 9 Imported by: 0

README

gocover-cobertura

Build Status

Convert Go cover profiles to Cobertura XML format. This is useful for generating coverage reports in CI pipelines (like Jenkins, GitLab CI, GitHub Actions) from go test -coverprofile output.

Installation

Install the latest version using go install:

go install github.com/blackbirdworks/gocover-cobertura@latest

Usage

gocover-cobertura supports reading from stdin or reading directly from files, including glob patterns.

Usage: gocover-cobertura [flags]

Convert Go cover profile to Cobertura XML format

Flags:
  -h, --help          Show context-sensitive help.
  -f, --file="-"      Input coverage file path (default '-' for stdin)
  -p, --pattern=""    Glob pattern for matching files (e.g. '**/*.out')
  -o, --output="-"    Output Cobertura XML file path (default '-' for stdout)
Examples

Standard Unix pipes:

go test -coverprofile=coverage.out ./...
gocover-cobertura < coverage.out > coverage.xml

Using the --file flag:

gocover-cobertura -f coverage.out -o coverage.xml

Using glob patterns for multiple coverage files:

gocover-cobertura --pattern="tests/**/*.out" -o coverage.xml

Authors

Thanks

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
cobertura
Package cobertura defines data structures and XML serialization models for Cobertura coverage reports.
Package cobertura defines data structures and XML serialization models for Cobertura coverage reports.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL