gocoverutil

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: MIT Imports: 9 Imported by: 0

README

gocoverutil

Release Travis CI AppVeyor Codecov Coveralls Go Report Card

Install it with go get:

go get -u github.com/AlekSi/gocoverutil

gocoverutil contains two commands: merge and test.

Merge command merges several go coverage profiles into a single file. Run gocoverutil merge -h for usage information. Example:

gocoverutil -coverprofile=cover.out merge internal/test/package1/package1.out internal/test/package2/package2.out

Test command runs go test -cover with correct flags and merges profiles. Packages list is passed as arguments; they may contain ... patterns. The list is expanded, sorted and duplicates and ignored packages are removed. go test -coverpkg flag is set automatically to the same list. Only a single package is passed at once to go test, so it always acts as if -p 1 is passed. If tests are failing, gocoverutil exits with a correct exit code. Run gocoverutil test -h for usage information. Example:

gocoverutil -coverprofile=cover.out test -v -covermode=count github.com/AlekSi/gocoverutil/internal/test/...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Package gocoverutil implements merging of go cover profiles and running go test -cover with correct flags.
Package gocoverutil implements merging of go cover profiles and running go test -cover with correct flags.
internal

Jump to

Keyboard shortcuts

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