Individual skill
mocking-strategy
Test double (Mock, Stub, Spy, Fake) selection and effective mocking strategy guide. Use this skill for 'mocking', 'Mock', 'Stub', 'Spy', 'Fake', 'test doubles', 'dependency isolation', 'external service mocking', 'DB mocking', and other test isolation strategy tasks. Enhances the mocking design capabilities of unit-tester and integration-tester. Note: overall test strategy formulation and CI integration are outside the scope of this skill.
en/24-test-automation/.claude/skills/mocking-strategy/skill.md
Source commit 8e8d35c6a19166614d1af1df85512266d51121ae
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,323
- Repository last updated
- Mar 22, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
Read excerpt
# Mocking Strategy — Test Double Selection and Mocking Strategy Guide
Methodologies for effectively isolating dependencies to create reliable tests.
## Test Double Type Comparison
| Type | Purpose | Behavior | Verification Target |
|------|---------|----------|-------------------|
| **Dummy** | Fill parameters | Does nothing | Not used |
| **Stub** | Provide fixed responses | Return predefined values | State (result values) |
| **Spy** | Record calls | Real behavior + recording | Interactions (call count/args) |
| **Mock** | Define expected behavior | Pass if expectations met | Interactions (call order/args) |
| **Fake** | Lightweight implementation | Working simplified implementation | State (integration level) |