Last active
June 20, 2016 03:25
-
-
Save keshavab/01b36d3aec5dd7388e78b292897408f7 to your computer and use it in GitHub Desktop.
go commands
This file contains hidden or 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 -cover | |
go test -coverprofile=coverage.out | |
go tool cover -html=coverage.out | |
-- run a specific testcase | |
go test -v -cover -run TestSubscriberStop | |
-- run a specific file | |
go test -v -cover context_messaging.go | |
-- run a specific file and it includes some other package | |
go test -v -cover context_messaging.go context.go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment