Back To Blogs

Smoke vs Sanity vs Regression Testing: What's the Difference?

Smoke, sanity and regression testing all answer the question "is this build OK?", but at very different depths and moments. Mixing them up leads to either wasted time (a full regression run on a build that doesn't even start) or escaped bugs (a quick sanity check standing in for regression).

Smoke testing: does it basically work?

Goal: decide quickly whether a build is stable enough to test further.

  • Scope: broad and shallow, covering the most critical paths only
  • When: on every new build or deployment, before anything else
  • Size: minutes; often 5–20 checks
  • Typical checks: the app loads, users can sign in, the main page renders, core API health endpoints respond, a key transaction (search, add to cart) works

If the smoke test fails, the build is rejected. There's no point running 500 regression tests against it.

The name comes from hardware: switch it on and see whether smoke comes out.

Sanity testing: does this specific change work?

Goal: after a small change or bug fix, confirm that the change behaves sensibly.

  • Scope: narrow and focused on the changed area and its immediate surroundings
  • When: after a fix or minor change, usually before a fuller regression
  • Size: minutes to an hour
  • Example: a fix for "coupon applied twice". Apply the coupon, try it again, try a different coupon, remove it, and check the totals.

Sanity testing is often unscripted and done by the tester who knows the change.

Regression testing: did we break anything else?

Goal: make sure existing functionality still works after changes.

  • Scope: broad and deep, covering previously working features
  • When: before a release, after significant changes, and continuously in CI
  • Size: hours by hand, minutes when automated
  • Approach: usually prioritised (critical flows first) and heavily automated

Regression bugs are among the most frustrating for users: something that worked yesterday stops working today.

Side by side

SmokeSanityRegression
QuestionIs the build testable?Does this change work?Did anything else break?
BreadthWideNarrowWide
DepthShallowDeep on one areaDeep
WhenEvery buildAfter a fix or small changeBefore release, in CI
Usually automated?YesOften manualYes, mostly

How they fit together in a pipeline

  1. Build is deployed to a test environment → automated smoke suite runs
  2. Smoke passes → testers do sanity checks on the changes in this build
  3. Release candidate → full or prioritised regression (automated plus targeted manual)
  4. Deployed to production → a smoke suite runs again against production

Building a good smoke suite

  • Keep it fast: under 10 minutes, ideally under 5
  • Cover the money paths: sign in, the primary action, payment or booking
  • Make it reliable: a flaky smoke test blocks deployments and gets ignored
  • Run it after every deploy, production included

Keeping regression manageable

  • Prioritise: tag tests by risk and run the critical set on every change
  • Automate stable, repetitive checks; keep humans on exploration and new features
  • Prune: remove tests for features that no longer exist
  • Add a test for every escaped bug so it can't come back silently

The interview answer

"Smoke testing is a quick, broad check that a build is stable enough to test. Sanity testing is a narrow check that a specific change or fix works. Regression testing is a broad, deeper check that existing features still work after changes. Smoke tests gate the build, sanity tests verify the change, and regression tests protect everything else."

Test your understanding

Terms like these come up in every QA interview. Try the QAUnlocked quizzes on testing fundamentals, then put them into practice in a Practice Lab: after you report a bug, think about which smoke, sanity and regression checks would have caught it.

smoke testingsanity testingregression testinginterview questions

Comments

0 Comments

Be the first to comment.