Smoke testing
Смоук-тестирование
A quick set of checks confirms that the most important features of a new build work well enough to move on to more detailed testing.
Also known as: дымовое тестирование
What smoke testing tells you
Smoke testing is the first pass on a new build or deployment. It answers a practical question: is this version usable enough to spend time testing it in depth? If customers can't sign in or place an order, there's little value in running a long suite of discount and refund tests. A pass clears that first hurdle; it doesn't certify the release.
What belongs in a smoke suite
Start with the failures that would make a build unusable. For an online store, that might mean a broken catalog, a cart that won't accept items, or a checkout that never creates an order. Pick a small number of checks with clear expected results and use known test data. Cover one normal path through each critical workflow before adding variations. The goal is a useful result quickly, not maximum coverage.
Teams can run smoke checks from a manual checklist or automate them in CI/CD. For example, a pipeline can deploy a build to staging, run the smoke suite there, and start a longer test suite only if the checks pass. Running against the deployed app can catch configuration or dependency problems that build-time tests miss. If a check fails, investigate before moving on: the cause could be an application defect, a misconfigured environment, or stale test data.
Example: checkout on staging
Use a test account to open the catalog, add an in-stock item to the cart, and check out through a sandbox payment provider. Verify that checkout returns an order number and that the order appears in the account's order history. A confirmation page alone isn't enough: it could appear even if the order wasn't saved. Declined cards, expired coupons, and retries belong in more detailed tests unless one of them is critical enough to justify a spot in the smoke suite.
How it differs from other checks
- Regression testing looks for existing behavior that broke after a change. A smoke suite may reuse regression tests, but its purpose is narrower: decide quickly whether to proceed.
- End-to-end testing describes how a test runs, across the system from start to finish. Smoke testing describes why that test was selected. The checkout check can be both.
- Health checks can confirm that a service responds or is ready to receive traffic. That signal is useful, but a healthy service can still fail to complete a customer workflow.
In an interview
If asked to design a smoke suite, explain what would make you stop testing the build, then choose checks that would reveal those failures. Give an observable pass condition for each one and name a check you'd leave out. That shows how you balance risk against the need for fast feedback.