gocovstats

command module
v0.0.0-...-c4e07e6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

gocovstats

Tests

A small utility for summarizing Golang coverage profiles.

It's particularly useful for large projects that utilize coverage across multiple packages using the -cover-pkg test flag.

Install:

$ go get github.com/sfc-gh-anezvigin/gocovstats

Install (alternative via Git):

$ git clone git@github.com:sfc-gh-anezvigin/gocovstats.git
$ cd gocovstats
$ go install

Options:

$ gocovstats
gocovstats [flags] FILENAME

flags:
  -depth int
    	Output depth of directory tree
  -dirs-only
    	Output directories only
  -ignore value
    	Glob pattern of files to exclude from coverage (can repeat)
  -json
    	Output in JSON format
  -match value
    	Glob pattern of files to include in coverage (can repeat)
  -no-color
    	Output colorization disabled

Basic summary:

$ gocovstats coverage.out

Don't show individual files. Useful for large projects.

$ gocovstats -dirs-only coverage.out

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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