What problem does it solve?
This Skill unit provides guidelines and frameworks for effective Test-Driven Development (TDD), addressing challenges in ensuring code quality and facilitating test-first development practices.
Core Features & Use Cases
- TDD Philosophy: Promotes tests that verify behavior through public interfaces, not implementation details, fostering flexibility and refactoring ease.
- Good Testing Practices: Encourages integration-style tests, focusing on observable behavior, and discourages tests coupled to implementation.
- Anti-Pattern Avoidance: Warns against "horizontal slicing" in testing, advocating for vertical slicing and iterative development.
- Planning and Workflow: Outlines a structured workflow for TDD, including planning, writing tracer bullets, incremental loops, and refactoring.
- Checklist: Offers a comprehensive checklist for each TDD cycle to ensure thoroughness and adherence to best practices.
Quick Start
Use the tdd skill to initiate TDD in your next project, ensuring tests are written before production code and adhering to best practices for effective test development.