TDD: enforce RED-GREEN-REFACTOR, tests before code.
ROT-GRÜN-REFACTOR-Zyklus für jede Codeänderung. Stellt sicher, dass Tests vor der Implementierung geschrieben werden und alle Änderungen rückwärtskompatibel sind.
# Test-Driven Development (TDD)
## Overview
Write the test first. Watch it fail. Write minimal code to pass.
**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
**Violating the letter of the rules is violating the spirit of the rules.**
## When to Use
**Always:**
- New features
- Bug fixes
- Refactoring
- Behavior changes
**Exceptions (ask the user first):**
- Throwaway prototypes
- Generated code
- Configuration files
Thinking "skip TDD jus