feat: test assessor enhancements for command documentation and organization (ADR A.2, A.3)#481
Conversation
…zation (ADR A.2, A.3) Add test command documentation check (10-point bonus) that scans CLAUDE.md/AGENTS.md/README for test command keywords. Agents need to find the command, not just have a runner configured. Add test organization detection as substantiating evidence (unit/integration separation, pytest markers, Makefile targets, filtered test scripts). Existing scores unchanged: documentation is a bonus on top of the existing 40/20/20/20 signals, capped at 100. Closes #460 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR enhances the test assessor to detect and score documented test commands in context files and collect evidence of test organization patterns. It adds a 10-point bonus when test commands are found in ChangesTest Execution Assessor Enhancements
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📈 Test Coverage Report
Coverage calculated from unit tests only |
|
Actionable comments posted: 0 |
Review: Test Assessor Enhancements (ADR A.2, A.3)Tested the PR against four real repos (astronomer/dag-factory, ReactiveX/RxPY, go-graphite/go-carbon, and agentready itself) to validate both new features. A.3 (Test command documentation bonus): Worked correctly across all four repos. Detection fired for both AGENTS.md (dag-factory, RxPY, agentready) and CLAUDE.md (go-carbon). The 10-point bonus is visible in scoring: e.g., RxPY scored 90 (80 base + 10 doc bonus). A.2 (Test organization evidence): Correctly recorded as non-scoring evidence. Detected separate Minor observations (non-blocking):
Posted by Bill Murdock with assistance from Claude Code. |
|
🎉 This PR is included in version 2.45.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
A.3 (test command documentation): Scans CLAUDE.md, AGENTS.md, and README.md for language-specific test command keywords (e.g.,
pytest,npm test,go test). Awards 10 bonus points when found. The insight from the BP: agents need to find the command, not just have a runner config file present.A.2 (test organization): Detects unit/integration test separation signals and records them as evidence. Python: separate dirs, pytest markers, Makefile targets. JS/TS: separate dirs, filtered test scripts (
test:unit,test:integration). Go: build tags, Makefile targets. No score impact per ADR ("substantiating evidence, not a hard gate").Implements Proposals A.2 and A.3 from the accepted ADR. Third of six implementation PRs.
Self-score change: 73.2 -> 74.8 Silver (documentation bonus applies since AGENTS.md mentions
pytest).Related issues
Test plan
black . && isort . && ruff check .passespytest tests/unit/passes (1111 passed, 17 skipped)agentready assess .runs successfully (74.8/100 Silver)Closes #460
Posted by Bill Murdock with assistance from Claude Code.
Summary by CodeRabbit
New Features
Documentation