Skip to content

chore: add code coverage tooling and reporting#9

Merged
min0625 merged 1 commit into
mainfrom
chore/add-coverage-tooling
Jun 22, 2026
Merged

chore: add code coverage tooling and reporting#9
min0625 merged 1 commit into
mainfrom
chore/add-coverage-tooling

Conversation

@min0625

@min0625 min0625 commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Summary

Adds code coverage tooling for local use and CI reporting via Codecov.

  • Makefile: new cover and cover-html targets
    • make cover runs go test -race -covermode=atomic -coverprofile=coverage.out ./... and prints a per-function summary
    • make cover-html additionally renders coverage.html
  • CI: new .github/workflows/coverage.yml that runs on push to main and v* tags, runs make cover, and uploads coverage.out to Codecov. Mirrors the conventions in the existing pr-check.yml (mise install, Go module cache, pinned action SHA).
  • README / README.zh-TW: add Codecov badge.
  • .gitignore: ignore coverage.out / coverage.html.

Notes

  • The Codecov upload step uses CODECOV_TOKEN; this secret needs to be configured in the repo settings for the badge/upload to work.
  • Current coverage is 100% of statements.

Test plan

  • make cover passes locally (100.0% of statements)

🤖 Generated with Claude Code

- Add `make cover` / `make cover-html` targets for local coverage
- Add Codecov CI workflow on push to main and tags
- Add Codecov badge to README.md and README.zh-TW.md
- Ignore coverage.out / coverage.html

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@min0625 min0625 merged commit 45923fb into main Jun 22, 2026
4 checks passed
@min0625 min0625 deleted the chore/add-coverage-tooling branch June 22, 2026 14:47
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