On a project timeline, testing has historically sat near the end, so “left” means “earlier”. A defect found in the requirements or in freshly written code is fixed with a single edit; the same defect after release means an incident, a rollback and a hotfix.
What moves left
This is not about testing more, but about where exactly the checks sit. In a typical pipeline they are distributed like this:
- edits and commits — linters, static analysis, secret scanning;
- pull request — code review, unit and integration tests, dependency scanning;
- build — scanning of the image and of infrastructure-as-code configurations;
- test environment — end-to-end and dynamic checks, load runs.
Acceptance testing does not go away — it remains, but stops being the first line of defence.
Four variants of the approach
Donald Firesmith of the Software Engineering Institute identifies four ways to shift testing left; in practice they overlap.
| Variant | Essence |
|---|---|
| Traditional | the emphasis moves from acceptance and system tests through the UI to unit and integration tests through the API |
| Incremental | a large system is split into several deliveries, and each type of test is repeated in every increment |
| Agile/DevOps | short sprints and a pipeline turn testing into a continuous process |
| Model-based | executable models of requirements, architecture and design are verified before any code exists |
Shift left in security
In security the idea became the basis of DevSecOps: the OWASP DevSecOps Guideline promotes a shift-left culture, in which security checks are built into writing and testing code so as to keep pace with CI/CD without slowing delivery down. In practice this means static analysis and scanning of dependencies and images in the pipeline, with threat modelling even earlier, at the design stage. NIST’s SP 800-218 (SSDF) describes the same principle as a set of secure development practices that can be built into any lifecycle.
Sources
the term is written from these pages- Donald Firesmith — Four Types of Shift Left Testing (SEI, 2015)sei.cmu.edu/blog/four-types-of-shift-left-testing/(opens in a new tab)
- OWASP DevSecOps Guidelineowasp.org/projects/devsecops-guideline(opens in a new tab)
- NIST SP 800-218 — Secure Software Development Framework (SSDF)csrc.nist.gov/pubs/sp/800/218/final(opens in a new tab)
Verified 9 Nov