Smoke testing
Smoke testing is a quick check of the most important things after a build or release: does the program start and does the critical path work, the main chain of a user’s actions. Example: after releasing a shop, open the home page, sign in, put an item in the cart and pay; if something fails, there is no point testing further and the version is rolled back. The name comes from electronics: power on the board, and if smoke appears, there is nothing more to look at. Such a check takes minutes and is usually automated.
Smoke, regression and end-to-end tests
| Smoke | Regression | End-to-end (e2e) | |
|---|---|---|---|
| Goal | decide whether to test further | make sure old things did not break | walk a whole user path |
| When | right after a build or release | after changes, overnight, before release | before and after release |
| Scope | small: only the main things | large: everything that worked | small to medium: key paths end to end |
| Who | automated test or tester, minutes | mostly automated tests | automated tests or QA |
Frequently asked questions
What is a smoke test?
A quick check of the main things after a build or release: does the program start and do the key functions work.Why “smoke”?
The name comes from electronics: you power on a board and see whether smoke appears. If it does, further testing is pointless.How is smoke testing different from regression?
Smoke checks only the main things and takes minutes, while regression covers everything that worked before. Smoke answers “is it worth testing further”, regression answers “did the old things break”.How is smoke testing different from e2e?
Smoke is wide and shallow: it checks that the main parts are alive. An end-to-end test is deep: it walks one user path from start to finish.Source: Wikipedia: Smoke testing (software)