Test placement and isolation
Each test sits at the cheapest layer that can provide trustworthy evidence and is insulated from the world, so results reflect product behavior rather than environment.
Use the descriptions below to decide which individual quality references are relevant. Open only the references that can materially affect the current decision, code, or failure.
- Integration points are exercised realistically - At least some tests cover real wiring between modules, adapters, and system boundaries.
- Tests are deterministic - Test outcomes do not depend on timing luck, ordering accidents, external state, or flaky infrastructure.
- Tests sit at the right level - Behavior is verified at the cheapest test layer that can provide trustworthy evidence, rather than pushed unnecessarily into broad slow tests.
- Unit tests avoid physical I/O - Unit tests verify focused behavior without touching the real filesystem, network, database, clock, or other physical/environmental resources unless that resource is the behavior under test. Open this when assessing what a test actually touches and whether it belongs at the unit-test layer.
- Integration tests verify real boundaries - Integration tests exercise the real seams where components, adapters, schemas, infrastructure, or configuration meet.
- End-to-end tests protect critical journeys - End-to-end tests cover a small number of high-value user or system journeys through the deployed shape of the application.
- Smoke tests are broad, shallow, and release-gating - Smoke tests quickly determine whether a build, deployment, or environment is healthy enough for deeper testing or use.
- Test data is owned and isolated - Tests create, control, and clean up the data and state they depend on rather than relying on accidental shared conditions.
- External dependencies are controlled in tests - Tests bound or replace nondeterministic third-party systems so failures reflect product behavior rather than outside instability.
- Unit tests mock physical boundaries - Unit tests avoid real filesystem, network, database, clock, process, and environment access unless the physical boundary itself is the behavior under test. Open this when assessing whether production design exposes a substitutable seam for a physical dependency.