You certainly heard this already: āTest early and oftenā. This is a quote by Larry Smith, the man who back in 2001 explained his concept of āshift-left testingā and how he envisioned it as a pragmatic solution to āintegrate QA and development parts of a software projectā.
At that time, it was normal to think about the SDLC as a sequential and discrete process (often referred to as waterfall), with development and testing being two very distinct phases. They mobilized their own dedicated people and resources and happened far away in the timeline preceding each release.
If you have ever written at least one line of code, you know for sure that getting a response to appear on the screen is key to understanding if the instruction was correctly executed or not. Fast feedback is essential for developers to achieve anything at all. Unit testing in software development is based on this simple but powerful principle of early testing, shift left testing in other words.
Pushing testing earlier in the development cycle and spreading it in every step can sound simple but it has strong consequences. It means that testing will not be considered as a separate activity but has to be applied everywhere (continuous testing).
More generally, it also means that a culture shift needs to happen. Teams should be pushed to collaborate and to reduce friction in order to build trust and a shared sense of responsibility in the development process. As a consequence, automated testing tools became a must-have to enable this transformation.
It is not surprising that at the same time, word started getting out about the need for a more āagileā way to build software: smaller teams of engineers, while interacting more with business, could take ownership of a project and dramatically reduce the time to market as well as adapt easily to change.
Shift-left testing was part of that broader agile and DevOps movement and, in a sense, it can be considered seminal in the emergence of what are now industryās best practices: Test Driven Development, Behavior Driven Development, the Agile Testing Pyramid to name a few.
---
Shift left testing has multiple benefits. Here are the main ones.
āāShifting left allows to really automate testing. This automation has its own benefits:
āEarlier means faster and cheaper. Vulnerabilities found earlier in the development cycle can be fixed a lot faster. The benefits are:
Faster software delivery with fewer defects is a major benefit of the shift left testing approach.
git reset --soft -HEAD