Skip to content

feat: add test coverage check to CI#18

Merged
tawanorg merged 1 commit intomainfrom
feat/test-coverage-ci
Mar 31, 2026
Merged

feat: add test coverage check to CI#18
tawanorg merged 1 commit intomainfrom
feat/test-coverage-ci

Conversation

@tawanorg
Copy link
Copy Markdown
Owner

Summary

  • Add coverage profiling to the test job (go test -coverprofile)
  • Display coverage summary in CI logs
  • Enforce a 20% minimum coverage threshold (fails CI if below)
  • Upload coverage.out as a build artifact for detailed inspection

Current total coverage is ~21.6%. The 20% threshold is a baseline that can be raised as coverage improves.

- Generate coverage profile with go test -coverprofile
- Display coverage summary in CI output
- Fail if total coverage drops below 20% threshold
- Upload coverage.out as build artifact

Starting with a 20% threshold matching current coverage baseline.
Can be increased as test coverage improves.
@tawanorg tawanorg merged commit dd4be60 into main Mar 31, 2026
2 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant