BLOG
BlogGuides

Smoke testing vs regression testing: which to run, and when

A smoke test asks "is it up?", a regression test asks "did we break what worked?". What each catches, how long each should take, and which to run after an AI edit.

The short answer#

  • A smoke test checks that the app is alive and its front door opens: the home page loads, you can sign in, the main screen appears. It runs in minutes, after every deploy. If it fails, nothing else is worth testing.
  • A regression test checks that what worked yesterday still works today: sign-up with an email code, checkout with a coupon, the export your biggest customer uses. It is broader and slower, and it runs before a release or every night.

Both matter. They answer different questions at different moments.

What each one catches#

Smoke testRegression test
QuestionIs the build usable at all?Did this change break something that used to work?
Size3 to 10 short journeysEvery journey that would cost you a user if it broke
WhenAfter every deploy, before anything elseBefore a release, nightly, or after a risky change
Typical catchBlank page, sign-in loop, 500 on the dashboardA coupon no longer applies, a reset link points at the wrong domain, a form loses answers on Back
If it failsStop and roll backFix before you ship, or ship knowing

A blank white screen after a deploy is a smoke failure (an example). A sign-up email that suddenly links to localhost is a regression (another): the page still loads, so a smoke test passes, but every new user is stuck.

How to pick your smoke tests#

Choose the journeys without which the app is useless, and keep each one short:

  1. Open the home page and see the main heading.
  2. Sign in with a stored test account and reach the dashboard.
  3. Open the one screen most users visit first.

That is often enough. A smoke suite that takes 30 minutes stops being run after every deploy, which defeats its purpose.

How to pick your regression tests#

Start from what has broken before and what earns money:

  • Every bug you fixed. Write the bug as a test the day you fix it, so it cannot quietly come back. See Fix one bug without breaking another.
  • The money journeys. Sign-up, checkout, upgrade, invite a teammate.
  • What leaves the screen. Confirmation emails, SMS codes, downloads. These break silently because the page looks fine.
  • The other platform. If the app runs on iPhone and Android, the same journey on both, since a change can break one and not the other.

A release checklist you click through by hand is already a regression suite. It just isn't automated yet: turn it into saved tests.

After an AI edit, run both, in that order#

Coding agents change more than you asked for. A refactor of the sign-up form can touch the email template; a new pricing card can move a button the checkout test relied on.

  1. Smoke first: did the agent leave the app running?
  2. Then the regressions closest to the change: the journeys that use the files it touched.
  3. Then the rest, nightly: run tests against production every night.

The agent's own "done" is not a test of either kind. It is the agent grading its own work. See Your coding agent said done: what it did not check.

Doing it with Testsy#

Each test is a sentence. A smoke test can be "Open the home page, sign in with the stored account and see the dashboard". A regression test can be "Sign up with a new email, enter the code from the inbox, and reach the welcome screen".

  • Smoke after every deploy: from GitHub Actions or any CI.
  • Regressions nightly: on a schedule.
  • Repeat runs are quick: a repeat run follows the learned path. On our web tests, the median repeat took 34 seconds.
  • Evidence when it fails: a failed check shows the value it saw and where. A run the site blocked says Blocked rather than pretending to pass. See Verdicts and what counts.

Write your three smoke tests first. Get your free 10 tests.

Filed underWebReleases and regressionsCI, schedules and agents