Loading...
Loading...
Implement features using Test-Driven Development (TDD) with Red-Green-Refactor cycle.
npx skill4agent add del-taiseiozaki/claude-code-orchestra tddRepeat: Red → Green → Refactor
1. Red: Write a failing test
2. Green: Write minimal code to pass the test
3. Refactor: Clean up code (tests still pass)- [ ] Happy path: Basic functionality
- [ ] Happy path: Boundary values
- [ ] Error case: Invalid input
- [ ] Error case: Error handling# tests/test_{module}.py
def test_{function}_basic():
"""Test the most basic case"""
result = function(input)
assert result == expecteduv run pytest tests/test_{module}.py -vuv run pytest tests/test_{module}.py -vuv run pytest tests/test_{module}.py -v # Confirm still passes# Run all tests
uv run pytest -v
# Check coverage (target 80%+)
uv run pytest --cov={module} --cov-report=term-missing## TDD Complete: {Feature Name}
### Test Cases
- [x] {test1}: {description}
- [x] {test2}: {description}
...
### Coverage
{Coverage report}
### Implementation Files
- `src/{module}.py`: {description}
- `tests/test_{module}.py`: {N} tests