developing-test-driven
Installation
SKILL.md
Developing Test-Driven
Quick Start
- Red - Write a failing test that defines desired behavior
- Green - Write minimal code to make the test pass
- Refactor - Improve code while keeping tests green
- Repeat - Continue with next behavior (1-5 minute cycles)
Features
| Feature | Description | Guide |
|---|---|---|
| Red-Green-Refactor | Core TDD cycle | Fail -> Pass -> Improve -> Repeat |
| Test Patterns | Effective test structures | Arrange-Act-Assert, Given-When-Then |
| Test Fixtures | Reusable test setup | beforeEach, factories, builders |
| Mocking Strategies | Isolate dependencies | Inject deps, mock boundaries only |
| Parameterized Tests | Test multiple inputs | it.each for input variations |
| Coverage Analysis | Verify thoroughness | Statements, branches, functions |