Back
Testing Strategy
Unit, integration, E2E, and contract testing pyramid.
Test pyramid
- 70% unit, 20% integration, 10% E2E as a heuristic.
- Contract tests to validate external integrations.
- Use CDCs for microservices to avoid tight coupling.
Tooling
Parallelize tests, cache dependencies, and run flake detection with retries.