Debugging Tests
When tests fail:
- Reproduce locally with focused scope.
- Inspect stack traces and assertions.
- Isolate flaky dependencies (time, network, global state).
- Stabilize with proper setup/teardown.
Prefer fixing root causes over adding retries.