writing-tests
SKILL.md
Writing Tests
Core Philosophy: Test user-observable behavior with real dependencies. Tests should survive refactoring when behavior is unchanged.
Iron Laws:
Testing Trophy Model
Write tests in this priority order:
- Integration Tests (PRIMARY) - Multiple units with real dependencies
- E2E Tests (SECONDARY) - Complete workflows across the stack
- Unit Tests (RARE) - Pure functions only (no dependencies)