Definition
What it is
A smoke test answers one question: is this build alive? It does not verify correctness in depth. It verifies that the application starts, that the database answers, that the main route responds, and that nothing obvious is on fire. If the smoke test fails, deeper testing is wasted; if it passes, the expensive suite can run.
Why it matters
The cost of a broken build grows with every step it survives. A smoke test that runs in seconds can stop a broken build before it reaches staging, before it pings a reviewer, before it reaches a user. The economics are simple: spend seconds to save minutes, spend minutes to save hours.
How to do it well
Designing a smoke suite
Pick the critical path
The routes, jobs or queries whose failure makes the product unusable.
Keep it fast
If the smoke suite takes longer than a coffee break, it will be skipped.
Fail loudly
A smoke failure must block the pipeline, not warn and continue.
Do not duplicate
Smoke tests gate; unit and integration tests verify. Do not turn smoke into a second integration suite.
Common failures
Origin
The plumbing industry used smoke in 1875 to detect leaks in closed pipe systems. Electronics adopted the image: power up a new circuit and see if it smokes. Software borrowed it through Steve McConnell and Microsoft's build process in the 1990s. The image is visceral and survives translation: no smoke means the build is alive.
The phrase smoke test comes from electronic hardware testing. You plug in a new board and turn on the power. If you see smoke coming off the board, you turn off the power and prepare for the next step.
— Cem Kaner, James Bach and Brett Pettichord, *Lessons Learned in Software Testing*
Evidence
FAQ
- Smoke vs sanity: what is the difference?
A smoke test checks that the build is alive; a sanity test checks that a specific fix behaves as expected. Smoke is broader and shallower.
- How many smoke tests?
Enough to cover the critical path, no more. Five to twenty checks is typical.
- When should they run?
On every build, before the deeper suite. They are the gate, not the destination.
- Can a smoke test be manual?
Yes, but automated smoke tests are cheaper and more consistent.
Connections
- sanity-test
- regression-test
- continuous-integration
- build
- canary-deployment
Microsoft Learn (2012). Guidelines for Smoke Testing. https://learn.microsoft.com/en-us/previous-versions/ms182613(v=vs.120)
Kaner, C., Bach, J. & Pettichord, B. (2002). Lessons Learned in Software Testing. Wiley.
ThoughtWorks (2019). The origin of smoke testing and the confusion it can cause. https://www.thoughtworks.com/insights/blog/origin-smoke-testing-and-confusion-it-can-cause
RedMonk (2017). What is a smoke test? Lessons from Windows NT. https://redmonk.com/sogrady/2017/08/04/smoke-test/
Etymology
Origin: metaphor
smoke(noun): visible suspension of carbon particles, from Old English smocatest(noun): a trial or proof, from Latin testum, "earthen pot"
Semantic network
● broader ● narrower ● related
Broader
software-testingquality-assurance
Related
sanity-testregression-test- Continuous integration
- Build
canary-deployment
Used in the garden
- The Secret to Proven Digital Businesses That ACTUALLY Work (1×)
- Proven Digital Businesses: Unlock Your Path to Online Wealth (1×)
- The Silent Secret of Profitable Digital Businesses: Repeat and Scale (1×)
- The Secret to Profitable Digital Businesses: Repeat & Scale (1×)
- Unlock Digital Wealth: Proven Online Businesses for Rapid Success (1×)
- Uncover Golden Opportunities: The Investment Map Few Know (1×)
- The Productivity Hack That Destroyed My Kitchen (1×)
- The Secret to Digital Businesses That Never Stop Generating Profits (1×)
- Unveiling Investment Opportunities Experts Secretly Track (1×)
- Unveiling Money Opportunities: The Secret Map of Expert Investors (1×)
- Unleash Your Potential: Proven Digital Businesses for Real Wealth (1×)
- Unlocking Profitable Businesses: Digital Era's Hidden Secrets Revealed (1×)
- Unmasking the Secrets: Proven Digital Businesses That Actually Work (1×)
Sources
Microsoft Learn (2012). Guidelines for Smoke Testing. https://learn.microsoft.com/en-us/previous-versions/ms182613(v=vs.120)
Kaner, C., Bach, J. & Pettichord, B. (2002). Lessons Learned in Software Testing. Wiley.
ThoughtWorks (2019). The origin of smoke testing and the confusion it can cause. https://www.thoughtworks.com/insights/blog/origin-smoke-testing-and-confusion-it-can-cause