TDD Workflow
Cycle
- RED: Write failing test first
- GREEN: Write minimal code to pass
- REFACTOR: Clean up while keeping tests green
# Run tests in watch mode
pytest-watch
# Run with coverage
pytest --cov=src --cov-report=term-missing
RED GREEN REFACTOR cycle with pytest and coverage
npx skillmds@latest add loopyluci/test-driven-workflow # Run tests in watch mode
pytest-watch
# Run with coverage
pytest --cov=src --cov-report=term-missing
LoopyLuci/Skills/tree/main/skills/test-driven-workflow commit 20d27a8486