Blog

November 11, 2026 · Ihor Stefaniv · 2 min read

Smoke vs sanity vs regression testing: the difference and when to run each

Three terms that get mixed up in every team. Clear definitions, a comparison table and a simple rule for building each suite from your test cases.

The one-line definitions

  • Smoke: is this build testable at all?
  • Sanity: does this specific change work, together with what's right next to it?
  • Regression: did anything that used to work break?

And a fourth that often gets confused with them — retesting: is this particular bug fixed?

Comparison

Smoke Sanity Regression Retest
Question Can we start testing? Does the change work? Did we break anything else? Is the bug fixed?
Scope Wide and shallow Narrow and focused Wide and deep One defect
When Every new build After a fix or small change Before a release, after big changes After a fix
Duration Minutes Minutes to an hour Hours to days Minutes
Scripted? Usually Often not Yes, prioritized Steps from the bug report
Good automation candidate Yes Partly Yes Becomes a regression test

Examples

  • New build on staging → smoke: log in, open the catalog, add to cart, pay with a test card.
  • Developer fixed the discount calculation → retest the bug, then sanity on the cart and checkout.
  • Release candidate is ready → regression, ordered by priority.

Building the suites from your cases

A simple rule that works:

  • Smoke = Critical + High priority cases of the key journeys.
  • Regression = all cases, sorted from Critical to Trivial — when time runs out, you've covered the most important part first.

QA Tools builds both automatically from the priorities in your test sets. More on test levels and types in levels and types of testing, and you can check yourself with the types of testing drill.

A common anti-pattern

"We don't have time for regression, let's just do smoke." Smoke tells you the build starts; it says nothing about the 200 features that weren't touched by the smoke path. If regression is too long, prioritize and automate it — don't replace it.

Read next