feat: Add Test Double (Meszaros) semantic anchor#142
feat: Add Test Double (Meszaros) semantic anchor#142rdmueller merged 1 commit intoLLM-Coding:mainfrom
Conversation
Adds Meszaros' test double taxonomy (Dummy, Stub, Spy, Mock, Fake) as a standalone anchor. Orthogonal to both TDD schools — they define when/how much to use doubles, this defines what the double IS.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 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 |
|
Review: ✅ Excellent anchor, merge-ready. Test Double (Meszaros) is a textbook semantic anchor. The Dummy/Stub/Spy/Mock/Fake taxonomy is exactly the kind of precise vocabulary that improves LLM communication — saying "use a Stub here, not a Mock" triggers fundamentally different behavior. The "vocabulary precision" concept is spot on. Post-merge TODO:
Merging recommended, translation will follow in batch (see #149). |
LLM-Coding#138, LLM-Coding#139) Content from @Nantero1's original PRs LLM-Coding#138 and LLM-Coding#139, rebased on current main after merging LLM-Coding#137, LLM-Coding#140, LLM-Coding#142, LLM-Coding#143. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Why this anchor?
The catalog has London School TDD ("mock-heavy") and Chicago School TDD ("minimal mocking"), but neither defines what kind of double you're using. Meszaros' taxonomy is the canonical classification:
This is orthogonal to both TDD schools: they define when/how much to use doubles, Meszaros defines what the double IS. London School TDD already mentions "test doubles (mocks, stubs)" in passing but never defines the taxonomy — this anchor fills that gap.
Files changed
docs/anchors/test-double-meszaros.adoc— new anchor filedocs/all-anchors.adoc— added include in Testing & Quality sectionskill/semantic-anchor-translator/references/catalog.md— added catalog entry