Smoke vs sanity vs regression testing, on one app
Smoke testing vs sanity testing vs regression testing, shown on one small app. What each level proves, what it can’t, and why a page that loads is none of them.
Smoke testing vs sanity testing, in one line each: a smoke test asks “does the app start at all?” after a build or a deploy, broad and shallow. A sanity test asks “does the thing I just changed work?”, narrow and a little deeper. A regression test asks “does everything that worked before still work?”, and it is the only one of the three that can tell you a form stopped saving.
The definitions online contradict each other, mostly about sanity testing. So we’ll skip the argument and run each level on the same small app.

The page loads is not a test
Start one level below smoke, with the check that is easiest to mistake for a test.
A monitor asks your server for a page and gets a 200. That proves a process is running and can answer. It says nothing about what the answer contains.
Our files practice app shows how little that is. Its reports page has four export links.

We asked for each one and wrote down what came back. “Export CSV” answers 200 with the three rows. “Export JSON” also answers 200, and the file it hands over is an error page that says “Export failed”, saved under a .json name. “Export archive CSV” answers 200 with an empty file. A check that looks at the status sees three healthy exports. Two of them are broken.
Keep the 200 check. It is cheap and it wakes you up when the server is down. Just don’t count it as a test of anything a user does.
What is smoke testing
A smoke test is a small set of checks, run right after a build or deploy, that says whether the app is worth testing further. The name comes from hardware: switch it on and see if smoke comes out.
On the items app, our smoke test is one short journey:
- The login page opens.
- An editor logs in and lands on “Your items”.
- “New item” opens the form.
- A name and a note create an item, and its page opens with the name on it.
By hand it is a handful of clicks. It touches the login, the session, a page that reads data and one that writes it. If any of those is dead, you know before anyone else does, and there is no point running anything bigger.
Rules we keep for smoke tests:
- A handful of checks. If it grows past what runs in a couple of minutes, it has become a slow regression suite with gaps.
- Good input only. No empty form, no wrong formats. Those belong further down.
- It must reach an outcome. “The form opened” is still a page load. Step 4 is what makes it a test. A smoke test that never writes anything is one of the ways you get a green tick that checked nothing.
What is sanity testing
A sanity test is the quick, focused check of one change. You just fixed a bug or shipped a small feature, and before running everything you check that the change itself does what you meant.
Say we changed the item name’s limit to 60 characters. The sanity test is the new item form and nothing else: a name of 60 characters saves, and a 61st character can’t get in: our form stops typing at 60, and the server refuses anything longer. (That pair of values is boundary testing in its smallest form.)
Smoke and sanity get confused because both are short. The difference is where they point. Smoke is the same every time and covers the whole app thinly. Sanity is different every time and covers one spot properly. If you only remember one thing: smoke follows a deploy, sanity follows a change.
In a small team the sanity test is done by hand by whoever made the change, and that is fine. Its weakness is that it is never written down, so nobody runs it again next month. The fix is the third level.
What regression testing adds
A regression test checks that something which worked still works. A regression suite is all of those together: every journey you care about, for each kind of user, with its cases.
On the items app that means the editor’s journey with good input, an empty name, a name that is too long and a wrong value followed by the right one. It means the viewer, whose “New item” button must stay disabled and whose direct visit to the form must answer “Viewers can’t create items.” It means another editor’s item still answering the not-found page. And the exports above, opened and read.
Two things make it different in kind from the first two levels:
- It has expected results. Each case has an answer someone approved, and the run is compared with it. That is the part that catches the export that answers 200 with an empty file. (How to write those answers: how to write test cases.)
- It grows from the other two. Yesterday’s sanity test, written down with its expected result, is tomorrow’s regression case. That is how the suite should grow: from changes you really made, and bugs you really had.
Smoke testing vs sanity testing vs regression: which to run when
| When | Run | Why |
|---|---|---|
| After every deploy | Smoke, then regression | Smoke tells you in a minute whether to bother. Regression tells you what broke |
| After a change, before you call it done | Sanity on that change | You are the only one who knows what it was meant to do |
| On a schedule | Regression | Things break without a deploy: an expired key, a third party, a full disk |
| All day | The 200 check | To know the server is up, and only that |
If you have time for one level only, make it a short regression suite of your most important journeys. It contains the smoke test (if login is dead, every journey fails at stop one) and it remembers your sanity tests.
How EveryRole fits
EveryRole works at the regression level, from outside. It explores your live app and suggests journeys. Each journey is a list of stops, and each stop runs its cases: good input, empty, wrong format, wrong then right, and others that apply to that kind of stop. You say yes to each first result once, and every later run compares with the answer you approved. It runs after deploys, on a schedule, or by hand.
For a download it checks that the file is of the type the button names and that it isn’t empty, so the two broken exports above come back as Broken where a status check stays green. Page checks run on every page of the app in a full run, which covers the “does it load” level as well.
Your sanity test is still yours: only you know what the change was for.


