gocovstats
![Tests](https://github.com/sfc-gh-anezvigin/gocovstats/workflows/Tests/badge.svg)
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