What problem does it solve? Test suites often give false confidence: tests that assert nothing meaningful, over-mocked tests that mirror the implementation, and coverage numbers chased as goals. This Skill guides writing unit tests that actually catch regressions and pin down intended behavior. ## Core Features & Use Cases - Regression-guard workflow: Reproduce a bug in a failing test first, fix the code, then confirm the test passes and keep it permanently. - Mocking discipline: Apply the dummy/stub/fake/spy/mock taxonomy correctly, fake at architectural boundaries, and avoid over-mocking cheap in-process collaborators. - Test structure and naming: Use Arrange-Act-Assert structure, one behavior per test, and scenario-based names that explain failures without opening the file. - Coverage judgment: Treat coverage as a diagnostic for gaps in business logic, not a target, and know what is not worth testing (getters, generated code, pass-through wrappers). - Use Case: After fixing a coupon threshold bug, write the failing boundary test first, apply the one-character fix, and add neighboring boundary tests so the off-by-one can never silently return. ## Quick Start Write unit tests for this function following the regression-prevention guidelines, with scenario-based names and minimal mocking.