Back to the glossary

Process and automation

Shift-left testing

Shift-left means testing as early as possible in the development process, instead of bundling tests at the end before delivery. Defects are found earlier and more cheaply as a result.

Also known as: shift left, early testing

Where the name comes from

Draw the development process as a timeline from left to right, and testing traditionally sits at the far right. Shift-left moves it to the left, closer to requirements and implementation.

Why it pays off

The later a defect is found, the more expensive it is: the context is forgotten, other parts already build on it, and in the worst case the product is already with the customer. A defect that a test reports minutes after the code was written is usually fixed in minutes.

What shift-left looks like in practice

  • Requirements are written together with testable acceptance criteria
  • Developers write unit tests alongside the code
  • Every change runs through automated tests in the CI pipeline
  • Embedded software is tested with software-in-the-loop before hardware is available

Shift-left doesn’t replace late tests. System and acceptance tests are still needed, but they turn up far fewer surprises.