Calculate total coverage from a Go coverage profile, excluding generated files.
Example usage:
go test -coverprofile=cover.out ./...
covertool -profile=cover.out
# Example output:
total: (statements) 32.66%
Installation:
go install github.com/neilgarb/covertool@latest
Resources:
- https://go.dev/testing/coverage
- ParseProfiles documentation