Skip to content

Instantly share code, notes, and snippets.

@user3301
Created January 2, 2020 05:34
Show Gist options
  • Select an option

  • Save user3301/2abde1c304c7acee29199384e2124bfd to your computer and use it in GitHub Desktop.

Select an option

Save user3301/2abde1c304c7acee29199384e2124bfd to your computer and use it in GitHub Desktop.
generate golang test coverage with default go CLI
go test ./... -short -coverageprofile=coverage.out
go tool cover -html=coverage.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment