Last active
June 10, 2020 19:02
-
-
Save alanshaw/76c53efd57e180aa4dedc6d92f845c37 to your computer and use it in GitHub Desktop.
golang run tests with coverage and HTML coverage viewer
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 -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