Created
May 17, 2016 16:34
-
-
Save thehowl/7d2832067e57e2361f1dda376a658cbe to your computer and use it in GitHub Desktop.
Script to generate a cover profile easily in go
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
#!/usr/bin/env bash | |
go test -v -bench . -cover -coverprofile=profile.out ./... | |
go tool cover -html=profile.out | |
rm profile.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment