test: prune low-signal unit tests and add E2E-first test rules - #267
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
Removes tests that duplicate E2E assertions, only verify mock wiring, or repeat another kept test on the same branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
…suites Removes tests that duplicate E2E assertions, only verify mock wiring or constants, or repeat another kept test on the same branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
…o suites Removes tests that duplicate E2E assertions, only check constants, key existence, or mock wiring, or repeat another kept test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
…compact suites Removes tests that duplicate E2E assertions, only check constants, return types, key existence, or mock wiring, or repeat another kept test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
…arch suites Removes tests that duplicate E2E assertions, only check constants, return types, key existence, or mock wiring, or repeat another kept test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
… suites Removes tests that duplicate E2E assertions, only check constants, return types, key existence, or mock wiring, or repeat another kept test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
…ort suites Removes tests that duplicate E2E assertions, only check constants, return types, key existence, or mock wiring, or repeat another kept test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
… suites Removes tests that duplicate E2E assertions, only check return types, key existence, or mock wiring, or repeat another kept test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: teslamint/entirecontext/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (80)
💤 Files with no reviewable changes (73)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe pull request adds test-writing guidance and changes tests across many areas. Most changes remove existing test cases. Some tests are added or revised for decision behavior, hook workflows, embedding behavior, search date handling, and tidy-PR output. No production-code changes are described. ChangesTest suite updates
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Other Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is established. The changes are mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 29.31% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 58 functions across 6 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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 |
|



Purpose
Delete the unit tests that would not catch a real bug the E2E suite misses. Add test-writing rules to AGENTS.md so agents stop writing that kind of test.
Key changes
### Test-writing rulessubsection under## Test:tests/test_e2e_*.pytest already asserts the same behavior on the same code path. We read the E2E assertion itself; coverage alone did not count.--helptext, or "does not raise". Also removed: assertions that can never fail, such aslen==0 or ...,if found:guards, and a single digit that dates always contain.pytest tests/test_e2e_*.py --cov.src/,conftest.pyor E2E files changed.Note: the deletion of
tests/test_config.py(twoDEFAULT_CONFIGconstant checks) landed in the AGENTS.md commit4812540, because a concurrentgit rmwas already staged when that commit was made.Test evidence
The one local failure is
tests/test_pdi_optimizer.py::TestEstimateTokens::test_encoding_initialized_at_module_level. It fails the same way before this PR's changes and only in the local environment. On this PR's head, CItest (3.12)andtest (3.13)both pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01PhNKoUPD9knX59FoMD9dX8
Summary by CodeRabbit