Testing
v1.0.0
Reviews test quality across unit, integration, and E2E layers — test isolation, assertion clarity, factory patterns, and coverage gaps. Tests that pass but do not actually verify behavior create false confidence that leads to production incidents.
Quality(13)
Make tests deterministic — no real clock, network, or randomness
Inject or mock time, network, and random sources so tests produce the same result every run.
Maintain Test Isolation
Every test must be independent — no shared mutable state, no execution order dependencies. When tests share state, they pass in isolation but fail together (or worse, fail randomly), creating flaky CI that wastes hours of debugging time.
Automate Testing checks on every PR
BeforeMerge scans your pull requests against all 13 Testing rules automatically. Get actionable feedback before code ships.