A smoke test checks whether a new build works well enough to test at all: it starts, you can log in, the main flows open. A sanity check is narrower: it confirms that one specific change or fix works. Run smoke on every build, and a sanity check after a small change.
The two often get mixed up, and the mix-up has a real cost. A team that "sanity tested" a release may have checked one fixed button, while the manager reading the status assumed the whole build had been looked at.
What is smoke testing?
The ISTQB glossary, the vocabulary most software testers train on, defines smoke testing as "a test type to gain sufficient confidence that a test object is ready for planned testing".
The phrase that matters is "ready for planned testing". A smoke test does not try to find every bug. It decides whether the build deserves the time of the people about to test it. If login is broken, there is no point in running two days of release testing on top of it.
ISTQB also has a closely related entry for a build verification test: "an automated test that validates the integrity of each new build and verifies its key/core functionality, stability, and testability". In practice, the two names are often used for the same thing: a short automated check that runs on every build.
Is sanity testing an official term?
No, and this is the part most comparison articles skip. We searched the full ISTQB glossary on 2026-11-08. It has 1,129 terms. "Smoke testing" is one of them. "Sanity testing" is not there at all, not as an entry and not as a synonym.
That does not make the term useless. It means there is no shared definition to point to, so two teams can use it for different things. The most common use is a quick, narrow check after a small change: a bug fix, a config change or a hotfix, to confirm that the changed part works before anyone spends time on wider testing.
Because there is no standard, write your team's meaning down once, in the test plan or the README of the test suite. One sentence is enough: "Sanity check: the specific screen or endpoint touched by the change, plus login, run by hand before the change goes to full testing."
What is the difference between smoke, sanity and regression testing?
| Smoke test | Sanity check | Regression test | |
|---|---|---|---|
| Question it answers | Is this build fit to test at all? | Does this one change work? | Did the change break anything we did not touch? |
| Scope | Wide and shallow: the main flows, one happy path each | Narrow: the changed area | Wide and deeper: everything around the change, or everything |
| When | Every new build, before any other testing | After a small fix or change | Every change, and in full before a release |
| Usually | Automated | Manual | Automated, with manual parts |
| If it fails | Reject the build and stop testing | Send the change back | Investigate before release |
| Standard definition | Yes, in the ISTQB glossary | No | Yes, in the ISTQB glossary |
ISTQB describes regression testing as testing "to detect whether defects have been introduced or uncovered in unchanged areas of the software". That is the clearest line between the three. Smoke asks whether you can test. Sanity asks whether the change worked. Regression asks what else the change broke.
What goes in a smoke suite?
Keep it to the flows that would make every other test pointless if they failed. For a typical business web app that means something like:
- The app loads and returns no server error on the home or login page.
- A test user can log in and log out.
- The one flow that makes or moves money opens and completes once: an invoice, an order, a payslip.
- The main list or dashboard loads with data.
- One export or download works, if users depend on it.
Our own QA and test automation page shows a sample run in exactly this shape: login, an invoice total, a password reset and an export to PDF, with the export failing. A result like that ends the smoke run. You fix the export, or you agree in writing to test around it, before planned testing starts.
A smoke suite that takes longer than a few minutes stops being run. When someone wants to add "just one more" deep check, it usually belongs in the regression suite instead.
How do you automate a smoke test?
Tag the smoke tests inside your normal test suite, rather than keeping a separate project that drifts out of date. Most test runners support this. Playwright's documentation shows tagging tests with an "@" token and running only those tests with the --grep option.
import { test, expect } from '@playwright/test';
test('user can log in', { tag: '@smoke' }, async ({ page }) => {
// ...
});
test('invoice total is calculated', { tag: '@smoke' }, async ({ page }) => {
// ...
});
Then run only the smoke set:
npx playwright test --grep @smoke
Wire that command into the pipeline so it runs on every build and stops the deployment when it fails. Our DevOps and deployment pipelines service covers setting up that kind of gate.
When should you not rely on a smoke test?
A passed smoke test means the build is testable. It does not mean the build is releasable. Two mistakes come up often:
- Shipping on smoke alone. A green smoke run after a hotfix feels like enough. It only proves the main flows open. The regression suite is what checks the rest.
- Calling a sanity check a test pass. If the status report says "tested", say what was tested. "Sanity checked the discount field after the fix, login and checkout" is honest. "Tested" alone is not.
The same rule applies to security fixes. When we retest a finding, as described in our approach, the retest targets that finding. It is closer to a sanity check of the fix than to a full test of the application, and the report says so.
FAQ
Is a smoke test the same as a build verification test?
In everyday use, often yes. ISTQB keeps them as two entries, and its build verification test definition stresses that it is automated and runs on each new build. Many teams use either name for the short automated check that gates every build.
Who runs smoke tests, developers or testers?
Whoever owns the build pipeline, because the smoke suite should run automatically on every build. Testers usually decide what goes in it, since they know which failures would block their work.
How many tests should a smoke suite have?
There is no fixed number. Start with one test per critical flow and keep the whole run short enough that nobody is tempted to skip it. Add a test only when its failure would make the rest of the testing pointless.
Can a sanity check be automated?
It can, but it rarely pays. A sanity check targets one specific change, so it is usually quicker to do it by hand. If you find yourself repeating the same sanity check after every release, that check belongs in the regression suite.
If you want a smoke suite and a regression suite set up in your own CI, tell us what you want tested.