Smoke tests run first on every new build, in CI/CD or on a developer’s machine. There are few of them, they are fast, and they check only the essentials: does the program start, does the interface open, does the main button respond? If a smoke test fails, the build is not handed to testers and no time is spent on deep test runs; it goes back to the developer.
What a smoke test is
It is a subset of test cases covering the system’s most important functionality. The goal is to find out whether the build is so broken that further testing is pointless. Smoke tests run before deeper testing, not instead of it. The order in a pipeline is build, smoke test, full regression. Testers also run a smoke test by hand before accepting a build for work.
What it checks and what it does not
| Checks | Does not check |
|---|---|
| the program starts and the interface opens | deep scenarios and edge cases |
| the main user scenarios | every logic branch and data combination |
| key integrations work | performance and load |
| no gross crashes | detailed defect hunting |
Where it is used
- after a build: automatically in CI/CD, before the build is passed to QA
- after deployment to an environment: to confirm the release is up and the service is alive
- after a migration or an environment upgrade
- before regression: so deep runs are not wasted on a build that is obviously broken
Example
curl -f http://app/healthz || exit 1pytest tests/smoke -m smokeSources
the term is written from these pagesVerified 9 Nov