testing-patterns
Installation
SKILL.md
Testing Patterns
TDD Workflow
Follow the Red-Green-Refactor cycle for every unit of behavior.
Red → Green → Refactor
- Red — Write a failing test that describes the expected behavior.
- Green — Write the minimum code to make the test pass.
- Refactor — Clean up the implementation without changing behavior. Tests stay green.
Never skip the Red step. If you write code before the test, you don't know if the test actually verifies anything.
Test Structure — Arrange, Act, Assert
Every test should have three clearly separated sections.
Related skills