Skip to content

Instantly share code, notes, and snippets.

@thehowl
Created May 17, 2016 16:34
Show Gist options
  • Save thehowl/7d2832067e57e2361f1dda376a658cbe to your computer and use it in GitHub Desktop.
Save thehowl/7d2832067e57e2361f1dda376a658cbe to your computer and use it in GitHub Desktop.
Script to generate a cover profile easily in go
#!/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