Shift-left practices

Testable acceptance criteria, testing in code review, static analysis, unit-test pairing with developers. Quality built in beats defects found late.

About 24 min read3-question knowledge check

The mental model

Shift-left is fire prevention instead of firefighting. A traditional pipeline treats quality as an inspection stage at the end: build the thing, throw it over a wall, find out what's wrong. Shift-left moves defect detection and prevention earlier — into requirements, design, code review, and the first CI run — because a defect's cost grows with the distance between when it was created and when it was found. Not because of a magic multiplier, but because of what accumulates in between: code built on top of the wrong assumption, context the author has paged out, release pressure, and (post-release) real users and real money.

The analogy: electrical wiring in a building. You can inspect wiring while the walls are open (cheap: look, point, fix) or after the drywall, paint, and furniture are in (tear-down cost dwarfs the fix), or after the fire (unbounded). No inspector argues for "shift-right-only wiring review." The empirical claims vary by study — the widely cited 10–100× escalation figures from older industry data are contested in magnitude — but the direction is not contested anywhere: a requirement ambiguity caught in refinement costs a conversation; the same ambiguity caught in production costs an incident plus rework plus trust.

What breaks without shift-left is the QA bottleneck pattern: a test team receives builds late, finds fundamental issues that require design changes, becomes the critical path for every release, gets blamed for slowness, and starts getting bypassed "just this once." Shift-left dissolves the wall: quality becomes work the whole team does at every stage, and the QA engineer's job shifts from finding bugs late to making bugs hard to create — which is also precisely how the SDET role is scoped at companies you want to work for.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision