The name
It comes from hardware: switch the device on, and if smoke comes out, stop. In software, if the login page throws an error, there is no point checking the reports.
A sample checklist for a web app
- The home page loads over HTTPS and returns the expected status.
- A test user can sign in and out.
- A record can be created, saved and read back.
- The database and queue connections report healthy.
- Static files and the main API route respond.
- A background job runs and completes.
Automating it
A smoke suite is often a handful of scripted checks that run after each deploy in staging and again in production, and failure triggers an alert or an automatic rollback. A health-check endpoint that verifies dependencies is a lightweight start.
What it is not
It does not prove the release is good, only that it is not obviously broken. Regression and acceptance testing follow.
Questions, answered
Minutes at most. If it takes longer, it has grown into a regression suite.
They are close cousins. Smoke covers broad basics of a build; sanity narrowly rechecks a specific fix.