Skip to content

Instantly share code, notes, and snippets.

@jredh
Created June 27, 2022 16:21
Show Gist options
  • Save jredh/82b2595a06a8dd6f00fba5a1affdc357 to your computer and use it in GitHub Desktop.
Save jredh/82b2595a06a8dd6f00fba5a1affdc357 to your computer and use it in GitHub Desktop.
go cover
mkdir .coverage || echo "coverage folder exists"
go test -v -cover ./... -coverprofile .coverage/coverage.out
go tool cover -html=.coverage/coverage.out -o .coverage/coverage.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment