Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gregoryv/uncover
Generate coverage reports from cover profiles
https://github.com/gregoryv/uncover
coverage golang test
Last synced: 4 days ago
JSON representation
Generate coverage reports from cover profiles
- Host: GitHub
- URL: https://github.com/gregoryv/uncover
- Owner: gregoryv
- License: mit
- Created: 2018-03-08T05:37:40.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T05:53:25.000Z (6 months ago)
- Last Synced: 2024-08-24T06:44:23.049Z (6 months ago)
- Topics: coverage, golang, test
- Language: Go
- Homepage:
- Size: 229 KB
- Stars: 23
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
Awesome Lists containing this project
README
[uncover](https://pkg.go.dev/github.com/gregoryv/uncover) - Generate coverage reports from coverprofiles
Generates colorized coverage report to stdout of uncovered funcs.
Source originates from the golang cover tool.## Quick start
Install
go install github.com/gregoryv/uncover/cmd/uncover@latest
In your project test with coverage and show result
go test -coverprofile /tmp/c.out
uncover /tmp/c.out [FuncName]![screenshot](screenshot.png)
Expect a minimum coverage
uncover -min 80.0 /tmp/c.out
## Difference from `go tool cover`
The purpose of uncover is to focus your work on what remains to be
verified. Thus it only shows uncovered lines. It also excludes
unreachable code, ie. `func _()` which is sometimes used for compile
checks.