Skip to content

Instantly share code, notes, and snippets.

@alanshaw
Last active June 10, 2020 19:02
Show Gist options
  • Save alanshaw/76c53efd57e180aa4dedc6d92f845c37 to your computer and use it in GitHub Desktop.
Save alanshaw/76c53efd57e180aa4dedc6d92f845c37 to your computer and use it in GitHub Desktop.
golang run tests with coverage and HTML coverage viewer
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... && go tool cover -html=coverage.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment