What problem does it solve?
In Test-Driven Development (TDD), the crucial first step is to write tests that fail because the desired functionality doesn't exist yet, ensuring tests truly validate new behavior.
Core Features & Use Cases
- Failing Test Generation: Creates test files and functions that explicitly fail, serving as executable specifications for new features.
- Requirement-Driven Testing: Designs test cases directly from REQ-* requirements and BR-* business rules, ensuring comprehensive coverage.
- TDD Workflow Integration: The foundational "RED" step in the RED β GREEN β REFACTOR cycle, setting the stage for implementation.
- Use Case: To begin implementing a "User Login" feature (REQ-ID 'UserLogin'), invoke this skill to generate tests for valid credentials, invalid email, and account lockout, which will fail until the login logic is written.
Quick Start
Generate failing Python tests for REQ-ID 'UserLogin' in 'tests/auth/test_login.py', covering email validation (BR-001) and password length (BR-002).