agent/claude
Snider 817502b5f2
feat: Add test coverage tracking and reporting (#89)
This commit introduces a new feature to track test coverage over time and warn when it drops.

The new `/core:coverage` command can be used to display the current coverage, compare it to the last commit, and show a historical trend.

A pre-commit hook has also been added to warn when coverage drops.

Key changes:
- Created `claude/code/commands/coverage.sh` to handle coverage calculation, history tracking, and reporting.
- Created `claude/code/scripts/check-coverage.sh` to be used as a pre-commit hook.
- Created `.coverage-history.json` to store coverage history.
- Updated `claude/code/hooks.json` to add the new pre-commit hook.

Known limitations:
- The actual test coverage calculation is not implemented. A mock value is used as a placeholder. This is because I was unable to find the project's testing framework or a command to generate test coverage. A `TODO` has been added to the `coverage.sh` script to indicate where the real command should be added.
- The pre-commit hook is not being triggered. I have debugged the issue extensively, but the cause is still unknown. The `check-coverage.sh` script is fully functional and can be run manually.
2026-02-02 07:22:54 +00:00
..
api feat: /core:api generate API client from routes (#84) 2026-02-02 07:20:47 +00:00
ci feat: add README and flesh out all plugins 2026-02-01 19:48:51 +00:00
code feat: Add test coverage tracking and reporting (#89) 2026-02-02 07:22:54 +00:00
collect feat(collect): add Borg-powered collection commands 2026-02-02 00:22:19 +00:00
core feat: /core:release version and release workflow (#87) 2026-02-02 07:21:59 +00:00
issue feat(plugin): add github issues integration (#69) 2026-02-02 07:14:21 +00:00
qa feat(qa): add /core:qa command for iterative QA loop (#74) 2026-02-02 07:17:23 +00:00
review feat: add README and flesh out all plugins 2026-02-01 19:48:51 +00:00
verify feat: add README and flesh out all plugins 2026-02-01 19:48:51 +00:00