Created
April 3, 2017 01:39
-
-
Save aalvesjr/12f4980e1884c86fbf73630bb9a5d611 to your computer and use it in GitHub Desktop.
Golang more detailed testing
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
# covermodes: set, atomic, count | |
go test -coverprofile="coverage.out" -covermode count | |
# coverage by function | |
go tool cover --func="coverage.out" | |
# HTML | |
go tool cover -html=coverage.out -o coverage.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment