Skip to content

Code Coverage

Code Coverage Report🔗


Using codecov works great for Github repos.

Use gopherbadge🔗

go install
  • Set ![gopherbadger-tag-do-not-edit]() in the readme, and then this gets replaced with a code coverage percentage badge.
  • Generate the required code coverage reports using:
go test ./... -coverprofile ./artifacts/cover.out
go tool cover -html=./artifacts/cover.out -o ./artifacts/coverage.html
gopherbadger -md="," -tags 'unit'

Last update: 2023-09-16
Created: 2023-09-16