Code Coverage

Codecov works great for Github repositories.

1
go install github.com/jpoles1/gopherbadger@master
  • Set ![gopherbadger-tag-do-not-edit]() in the readme. This will be replaced with a code coverage percentage badge.
  • Generate the required code coverage reports using:
1
2
3
go test ./... -coverprofile ./artifacts/cover.out
go tool cover -html=./artifacts/cover.out -o ./artifacts/coverage.html
gopherbadger -md="README.md,coverage.md" -tags 'unit'

Webmentions

(No webmentions yet.)