gocov-merger

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

README

gocov-merger

gocov-merger merges many golang coverprofiles into one coverprofile.

Installation

go get github.com/amobe/gocov-merger

Usage

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

Available options
  -q         quite mode
  -o file    specific output file
  -h         help page

Example

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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