Skip to content

Instantly share code, notes, and snippets.

@shicky
Last active October 7, 2016 04:56
Show Gist options
  • Save shicky/13ed67068c1446c23c22a5096587cb8d to your computer and use it in GitHub Desktop.
Save shicky/13ed67068c1446c23c22a5096587cb8d to your computer and use it in GitHub Desktop.
Generating coverage report for Golang

Generating golang coverage report

go test -cover -coverprofile=c.out
go tool cover -html=c.out

Run individual Test

go test packageName -run TestName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment