gocov-merger
merges many golang coverprofiles into one coverprofile.
go get github.com/amobe/gocov-merger
From the command line, gocov-merger
can merge many coverprofiles. By default, it prints the merge result to stdout
.
gocov-merger [options] PATH ...
The result can be use for gocov, gocov-xml, and gocov-html
-q quite mode
-o file specific output file
-h help page
cd project_a && go test -coverprofile=cover.out ./...
cd project_b && go test -coverprofile=cover.out ./...
gocov-merger -o merged.out project_a/cover.out project_b/cover.out ...
> Merged 2 reports to merged.out
gocov: Coverage reporting tool for The Go Programming Language.
gocov-html: A simple helper tool for generating HTML output from gocov.
gocov-xml: A simple helper tool for generating XML output in Cobertura format for CIs like Jenkins and others from gocov.