Mock Stub Designer

Designs the minimal set of test doubles for a unit or integration test and decides, per dependency, whether to stub, fake, spy, mock, or exercise the real thing. Use when someone asks "should I mock this", "how do I test code that calls Stripe or S3 or the clock", "why do our tests pass while production is broken", or when a test touches an HTTP API, payment or email/SMS SDK, database, filesystem, system clock, or randomness. Do NOT use for fabricating valid domain fixture data (a User with defaults, an Order with line items) - use test-data-builder instead; for driving a red-green implementation loop, use tdd-expert.

SkillMedev d81fcbe 7.8 KB Updated

File contents

SkillMedev/qa-test-automation/tree/main/skills/mock-stub-designer commit d81fcbe00d

Frequently asked questions

npx skillmds@latest add skillmedev/mock-stub-designer