Shift Left Testing
Find defects where they're cheapest to fix, in refinement, the editor and the pull request. But shift-left means early feedback, not running every expensive test at the earliest stage.
On this page
“Shift left” means pushing quality work earlier in the development lifecycle: to the left of the timeline. The reasoning is simple. A problem caught while you’re writing the code takes minutes to fix. The same problem found weeks later, by QA or in production, takes hours of rediscovering context, plus the cost of whatever it broke.
What it looks like, left to right
- Refinement. QA helps write acceptance criteria and the definition of done before the ticket enters the sprint.
- Editor. Types and lint catch whole classes of bugs as you type.
- Pre-commit. Formatting, lint on staged files, secret scanning.
- Unit and integration tests, written by the developer alongside the code.
- Pull request. Fast checks: lint, unit, a small smoke suite.
- Merge. The slower suites: full end-to-end, visual regression.
- Production. Canaries, feature flags, synthetic monitoring. This is shift right, and you need both.
Static analysis belongs here too: tools that check code without running it, flagging programming errors, standards violations and security issues. Treat its findings as prompts to investigate, since false positives happen.

A front-end pipeline, left to right
What I’d put in a front-end repo’s CI:
- Lint and format: ESLint with TypeScript rules, Prettier, and
eslint-plugin-jsx-a11yfor accessibility. - Unit and integration tests (Vitest, Testing Library; see React Testing Strategy), then end-to-end tests in Playwright, including automated accessibility checks with axe.
- Performance budgets: Lighthouse CI or performance monitoring in the pipeline, so the cost of each new dependency is visible over time rather than discovered by users (Front-end Performance Checklist).
People, not just pipelines
Shift-left is as much a culture change as a tooling one:
- Developers learn to write good tests; nobody is “throwing it over the wall”.
- QA engineers learn enough code to read what they’re testing and pair with developers. Pairing with QA makes developers think of paths they’d never have tried.
- QA defines the quality bar up front, rather than discovering it at the end.
Shift-left is not “shift everything left”
The trap is to run your entire expensive suite on every pull request in the name of quality, until feedback takes the best part of an hour and people stop waiting for it. The point is catching issues early and cheaply. Put each test where its cost matches the feedback it gives: fast checks on every change, heavy suites on merge and nightly. Splitting checks this way can cut feedback time several-fold without losing coverage.
“Isn’t this just waterfall?”
No. Waterfall front-loads all the planning. Shift-left front-loads feedback, continuously and in small batches.
In practice
The changes that gave my teams the most quality per minute were unglamorous: faster lint jobs, coverage shown on every merge request, secret scanning before commit, and test-first habits for new features. Security shifts left too: see Removing Secrets from Git History and Preventing XSS in React. The testing layers themselves are in React Testing Strategy, and the feedback-loop view of testing in TDD as a Feedback Loop.
- #testing
- #quality
- #ci
- #devsecops
- #ways-of-working
↩ Linked from (10)
Shift Left Testing · Removing Secrets from Git History · Building a Graph Component Library
Run them in CI next to everything else: they're the architectural end of Shift Left Testing.
…ntil a developer gets an answer they can act on; the fastest, most-likely-to-fail checks should report first (Shift Left Testing). Independent jobs in parallel, cached work never repeated. The usual first wins on any slo…
Acceptance criteria met and demonstrated, not just claimed. Tests at the right levels, passing in CI (Shift Left Testing). Contracts respected: unchanged, or changed with the consumers' agreement. Reviewed in PRs small e…
- DORA MetricsGrowing
…ad time and makes each deployment riskier. Splitting checks into fast PR checks and heavier merge checks (see Shift Left Testing) should show up as lower lead time first, and over time as a lower change failure rate.
Shift Left Testing · Building a Low-Code BPMN Workflow Platform · SOLID React
…al difference to how a team I worked with used its pipeline (A Testing Strategy Teams Actually Adopted). It's Shift Left Testing applied to the pipeline itself.
- Preventing XSS in ReactEvergreen
…SP header in the deployment are cheap insurance. Security belongs early in the pipeline alongside tests — see Shift Left Testing — and leaked secrets deserve the same treatment (Removing Secrets from Git History).
- React Testing StrategyEvergreen
…ee A Testing Strategy Teams Actually Adopted. The broader principle of catching problems early and cheaply is Shift Left Testing.
…sitories. Most of the effort wasn't the rewrite; it was making the prevention stick. It's a textbook case for Shift Left Testing: a scanner before commit costs seconds, and a rewrite after the fact costs days.
↪ Links to (6)
Related by topic
- Seed
Make the System Explain Itself
Platform engineering - Growing
Thoughtworks Radar 33 and 34: From MCP Everywhere to Agents on a Leash
Platform engineering - Seed
CVE and CVSS for Dependency Risk
Testing, quality - Seed
From Statement of Work to Done: Requirements Both Ends Can Build From
Career