November 14, 2026 · Ihor Stefaniv · 2 min read
Shift-left and shift-right testing: before the code and after the release
Testing isn't a phase between development and release. Shift-left catches defects in requirements and design; shift-right learns from production. Here's how to do both.
Testing is not a phase
In the classic picture, testing sits between "development done" and "release". Everything found there is already expensive: code is written, other code depends on it, and the release date is close. Shift-left and shift-right extend testing in both directions.
Shift-left: earlier
The goal: find defects when they're still cheap — in requirements, design and code review.
- Requirement reviews. Ask "what if the field is empty?" before anyone writes code — see requirements analysis.
- Acceptance criteria in Given/When/Then agreed before development.
- Testability by design: data-testid attributes, test data endpoints, feature flags.
- Developer tests and static analysis in the pull request.
- Contract tests between services so integration breaks are caught in CI.
- Three amigos: product, development and QA discuss a story together before the sprint.
Shift-right: after the release
The goal: learn what pre-release testing can't show — real users, real data, real load.
- Feature flags and canary releases: turn a feature on for 1% of users and watch error rates before rolling out.
- Synthetic monitoring: scripted checks of critical journeys running against production every few minutes.
- Observability: logs, metrics and traces that let you answer "what happened?" without reproducing locally — see observability for QA.
- A/B tests with guardrail metrics (errors, latency, conversion).
- Chaos experiments in controlled conditions to test resilience.
Shift-right is not "test in production instead"
It complements pre-release testing, it doesn't replace it. You still don't ship a broken checkout to 1% of users on purpose. Shift-right reduces the blast radius of what you inevitably miss.
Where QA fits
| Stage | QA activity |
|---|---|
| Discovery | Questions, risks, testability requests |
| Refinement | Acceptance criteria, test ideas |
| Development | Test design, early testing on preview environments |
| Release | Regression, Go/No-Go based on facts |
| Production | Monitoring checks, verifying feature-flag rollouts, learning from incidents |
The more of the left and right columns your team covers, the less pressure lands on the middle one.