Last active
September 18, 2024 09:21
-
-
Save alanshaw/2941c8673fab9b32b2d43d18fa341cf9 to your computer and use it in GitHub Desktop.
Golang coverage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test -coverprofile=c.out -v ./... | |
go tool cover -html="c.out" | |
# or | |
go install github.com/cancue/covreport@latest | |
go test -coverprofile=c.out -v ./... | |
~/go/bin/covreport -i c.out | |
open cover.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment