Skip to content

What is shift left testing?

Moving quality testing to when code is written, instead of a separate downstream phase.

Shift left testing means moving verification activities earlier in software development, while requirements and code are still being worked on. "Left" refers to the beginning of a timeline read from left to right. Rather than waiting for a finished product, developers and testers review requirements together, clarify expected results, and design checks to match. Some checks review documents; others run code and compare its behavior with what was requested. The aim is to find problems early enough to fix them before they cause further defects in the downstream design and code. Starting earlier does not eliminate later checks: a test of a single function cannot prove that the entire service works correctly. Teams therefore need to decide together when to verify, which skills are needed, and how to handle residual risks; a tool choice alone does not settle these questions.

See also: SDD & TDDSDD and TDD guide development with specifications and tests: the first tells an AI agent what to build, the second puts a test before each small step of code.

Which checks to move earlier

The ISTQB syllabus calls specification reviews and static analysis, which examines code without running it, static testing; testing that executes the software is dynamic testing. Both should start as early as possible. The syllabus also suggests designing test cases before code and running some automated checks earlier. Shift left can include these activities without requiring every check to be automated.

A 2002 report prepared for NIST shows fix costs rising the later an error is found, but labels its own multiplier table "Example Only." Its survey data vary by sector: a requirements error found after release took about 5 times the repair hours in transportation manufacturing and about 15 times in financial services. Decision makers should therefore weigh up-front effort against later work actually avoided, rather than apply a fixed multiplier.

How it differs from related practices

Test-driven development is a way to write code; shift left more broadly covers when checks begin. CI/CD, an automated integration and release workflow, can run some of them. The test pyramid instead covers how tests are spread across levels. DevSecOps applies a similar idea to security as well.

An enterprise example

A company is updating its invoicing system. Before development, finance managers, developers, and testers clarify how to handle negative amounts and unsupported currencies. Each decision becomes a testable expected result; automated checks for calculations are added during development. The complete workflow still needs testing with other systems before release. The scenario is hypothetical and does not guarantee that every defect surfaces early.

Why it matters for decision makers

When buying software, ask who participates in reviews, which checks remain before release, and how results and open defects are retained. As an organizational benchmark, NASA's rules define peer reviews as examinations of work products "to find and eliminate defects early in the life cycle" and mandate them for requirements, plans, and the code and test procedures named in project plans, depending on the software classification. They bind applicable NASA projects, not businesses in general. To assess the investment, compare review time and defects found at different stages without confusing the number of tests with the quality of the outcome.

Frequently asked questions

No. Early checks complement later testing, which is still needed to assess how the complete system behaves.

No. Reviewing requirements counts as an early check too; automation is useful where checks can be repeated reliably.
  • SDD & TDDSDD and TDD guide development with specifications and tests: the first tells an AI agent what to build, the second puts a test before each small step of code.
  • CI/CDContinuous Integration and Continuous Delivery: every software change is tested and shipped to production automatically and frequently.
  • Test automation pyramidThe test automation pyramid guides the mix of automated checks, favoring narrowly scoped tests and pairing them with checks on integrations and workflows.
  • DevSecOpsDevSecOps integrates security, development, and operations throughout the software lifecycle, with shared responsibility and ongoing vulnerability management.

See it in the universe

If it reminds you of a system nobody dares touch anymore, that is what I put back in order.

See Software Rescue

Or write to me.