What problem does it solve?
This skill addresses the common pitfalls of test-driven development, such as writing tautological tests, horizontal slicing, and coupling tests to implementation details rather than observable behavior.
Core Features & Use Cases
- Vertical Slicing: Guides you through the tracer bullet approach, ensuring each test corresponds to a single, verifiable behavior.
- Interface Design: Provides patterns for creating testable, deep modules with small surface areas.
- Mocking Guidelines: Defines clear boundaries for when to mock (system boundaries) and when to avoid it (internal collaborators).
- Use Case: When building a new feature, use this skill to plan your public interface, write a failing test for a single behavior, and implement the minimal code required to pass, ensuring your test suite remains a reliable specification.
Quick Start
Use the tdd skill to help me plan and implement the next feature using the red-green-refactor loop.