test-doubles-design
CommunityChoose the right doubles to keep tests honest.
Software Engineering#tdd#unit testing#test doubles#software quality#mock#state verification#interaction verification
Authorjacob-balslev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you design test doubles (dummy, stub, spy, mock, fake) so your tests verify the right kind of truth without becoming fragile, misleading, or overly coupled to implementation details.
Core Features & Use Cases
- Select the correct double type based on whether you need state verification or interaction verification, including the practical tradeoffs that drive the choice.
- Avoid common testing failures like over-mocking, false confidence from rigid mocks, and divergence from real collaborator behavior.
- Prefer fakes when possible by using working in-memory stand-ins as the robust middle ground between fully mocked interactions and heavyweight real collaborators.
- Use the right boundary with related disciplines, clarifying what this Skill covers (double design) versus what it deliberately does not (test levels, what to test, or TDD practice mechanics).
Quick Start
Ask the skill to recommend which test double fits your scenario and to explain whether your test should verify state or interaction using the five-kind taxonomy.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: test-doubles-design Download link: https://github.com/jacob-balslev/skill-graph/archive/main.zip#test-doubles-design Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.