Bookmarks

Smoke test

A quick, shallow check of a build: does the application start and do its main functions work? The result decides whether deeper testing is worthwhile.

Also: smoke testing, build verification test, sanity check

checked 9 Nov

All terms

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

ChecksDoes not check
the program starts and the interface opensdeep scenarios and edge cases
the main user scenariosevery logic branch and data combination
key integrations workperformance and load
no gross crashesdetailed 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

bash
curl -f http://app/healthz || exit 1pytest tests/smoke -m smoke

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • regression testing

    Regression testing is deep and broad: it checks that existing functionality has not broken. A smoke test is shallow and fast.

  • UATuser acceptance testing

    UAT is acceptance of the system by future users against business scenarios. A smoke test only checks that the build is alive at all.

In depth in the references

where the topic is covered in detail