What Is Smoke Testing in Software? Definition, Examples and How to Do It

On this page
Smoke testing is a quick set of tests run on a new software build to check that its most important functions work at all, for example that the app starts, users can log in and the main page loads. If the smoke test fails, the build is rejected straight away and no time is wasted on deeper testing. It is also called build verification testing (BVT) or "confidence testing".
Smoke testing at a glance
| Question | Answer |
|---|---|
| Goal | Decide if a build is stable enough to test further |
| When | On every new build or deployment (often automatically in CI/CD) |
| Scope | Wide but shallow: critical paths only |
| Duration | Minutes, not hours |
| Who | Automated pipeline, QA engineers or developers |
| Result | Pass (continue testing / deploy) or fail (reject the build) |
The name comes from hardware: power a new circuit board on, and if it starts smoking, there's no point testing anything else.
Why smoke testing matters
- Catches broken builds early, before testers spend hours on a version that can't even start.
- Protects production: a smoke test right after deployment confirms the live site still works (and can trigger an automatic rollback).
- Fast feedback for developers in continuous integration.
- Cheap insurance: a handful of automated checks prevents the most embarrassing failures.
Example smoke test checklist (web shop)
- Home page loads with status 200 and no errors in the console.
- User can sign up and log in.
- Search returns results.
- Product page opens and "Add to cart" works.
- Checkout page loads (payment in test mode).
- Key API endpoints respond (health check, login, orders).
- Database and third-party connections (payment, email) are reachable.
Each check is shallow: it doesn't test every coupon or edge case, just that the feature isn't broken.
How to do smoke testing
- List the critical user journeys (the features that would make the product useless if broken).
- Write one short test per journey, manual at first if needed.
- Automate them with a UI tool such as Playwright, Cypress or Selenium, plus API checks with Postman/Newman or a simple HTTP script.
- Run them on every build in your pipeline (GitHub Actions, GitLab CI, Jenkins), and again after each deployment to staging and production.
- Fail fast: stop the pipeline and alert the team if any smoke test fails.
- Keep the suite small and fast (ideally under 10–15 minutes); move detailed checks into regression tests.
Smoke vs sanity vs regression testing
| Smoke testing | Sanity testing | Regression testing | |
|---|---|---|---|
| Question | "Does the build basically work?" | "Does this specific fix or change work?" | "Did the change break anything that used to work?" |
| Scope | Wide and shallow, critical paths | Narrow and deep, one area | Wide and deep, most features |
| When | Every new build | After a bug fix or small change | Before releases, after major changes |
| Time | Minutes | Minutes to an hour | Hours (usually automated) |
| Scripted? | Usually scripted/automated | Often unscripted | Scripted and automated |
More on the bigger picture in what QA testing is.
Smoke testing in production
After a release, a short post-deployment smoke test (or "synthetic monitoring" that runs the same checks every few minutes) confirms real users can log in and buy. Combine it with feature flags, canary releases or blue-green deployments so a failing check can roll back quickly.
Advantages and limitations
| Advantages | Limitations |
|---|---|
| Finds show-stopper bugs within minutes | Doesn't find deeper or edge-case bugs |
| Saves tester time on broken builds | Passing a smoke test doesn't mean the build is release-ready |
| Easy to automate and run often | Needs updating as critical features change |
FAQ
Is smoke testing manual or automated?
Either, but in modern teams it's almost always automated so it runs on every build.
Who performs smoke testing?
The CI/CD pipeline runs it automatically; QA engineers or developers write and maintain the tests.
Is smoke testing the same as unit testing?
No. Unit tests check single functions; smoke tests check that the assembled application's main features work end to end.
What is a smoke test in other fields?
In plumbing and HVAC, harmless smoke is pushed through pipes or ducts to find leaks. The software meaning borrowed the idea of a quick "does it leak/burn" check.