What problem does it solve?
This Skill ensures that your tests are effective and truly verify behavior by enforcing the Test-Driven Development (TDD) methodology. It prevents the common pitfall of writing tests after the fact, which often leads to incomplete or ineffective test suites.
Core Features & Use Cases
- Red-Green-Refactor Guidance: Systematically guides you through writing a failing test, making it pass with minimal code, and then refactoring.
- Behavior Verification: Guarantees that tests actually verify desired behavior by requiring you to witness them fail first.
- Bug Prevention: Helps catch bugs early in the development cycle and prevents regressions by building a solid test foundation.
- Use Case: You're implementing a new user authentication feature. This Skill guides you to write the failing test for email validation first, then the minimal code to pass it, ensuring every piece of logic is covered and verified.
Quick Start
Guide me through implementing the 'add item to cart' feature using TDD, starting with the first failing test.