Skip to content

docs: add Scrutinizer coverage badge to README - #129

Merged
strider2038 merged 1 commit into
mainfrom
docs/scrutinizer-coverage-badge
Oct 3, 2026
Merged

strider2038 merged 1 commit into
mainfrom
docs/scrutinizer-coverage-badge

Conversation

@strider2038

Copy link
Copy Markdown
Contributor

Summary

Adds the Scrutinizer test coverage badge to the README, right next to the existing code quality badge, and records it in the changelog.

Scrutinizer already tracks coverage for main and currently reports 95% (badges/coverage.png?b=main), so the badge is live rather than a placeholder.

About the local coverage number

go test -cover ./... only credits a package with the tests that live inside it. In this repo most behavior is exercised by the integration suites in test/, so per-package numbers understate the real coverage. To attribute every package correctly:

go test -coverpkg=./... -coverprofile=cover.out ./...
go tool cover -func=cover.out | tail -1

Changes

  • README.md — add the Scrutinizer Code Coverage badge (links to the main branch report, matching the quality badge).
  • CHANGELOG.md — [Unreleased] entry.

Checks

  • python3 scripts/check-docs.py passes (22 Markdown files, 3 runnable Go examples).

@strider2038
strider2038 merged commit b2e9245 into main Oct 3, 2026
4 checks passed
@strider2038
strider2038 deleted the docs/scrutinizer-coverage-badge branch October 3, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant