test: add unit tests and document test quality rules#53
Conversation
BlackHole1
commented
Mar 31, 2026
- Add tests for file-store-utils, completion command, and file cleanup command
- Refactor skills install-progress tests: extract shared translator stub and normalizeOutput helper to reduce duplication
- Add failure summary and spinner interval tick test cases
- Document "DRY in Tests" and "try/finally over try/catch/rethrow" rules in AGENTS.md and CODE_QUALITY_RULES.md
- Add tests for file-store-utils, completion command, and file cleanup command - Refactor skills install-progress tests: extract shared translator stub and normalizeOutput helper to reduce duplication - Add failure summary and spinner interval tick test cases - Document "DRY in Tests" and "try/finally over try/catch/rethrow" rules in AGENTS.md and CODE_QUALITY_RULES.md Signed-off-by: Kevin Cui <bh@bugs.cc>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
Summary by CodeRabbit
WalkthroughThe PR adds comprehensive test coverage for multiple CLI command modules and two documentation files. New test suites are introduced for file-store utilities, completion command, and file cleanup command. Existing progress-reporting tests are refactored to extract shared translator stubs and add test cases for spinner rendering and failure scenarios. Documentation updates to AGENTS.md and CODE_QUALITY_RULES.md provide development guidance on extracting repeated test setup into factory functions and preferring Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |