Skip to content

Instantly share code, notes, and snippets.

@keshavab
Last active June 20, 2016 03:25
Show Gist options
  • Save keshavab/01b36d3aec5dd7388e78b292897408f7 to your computer and use it in GitHub Desktop.
Save keshavab/01b36d3aec5dd7388e78b292897408f7 to your computer and use it in GitHub Desktop.
go commands
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