What is smoke testing? The build check that runs first

Smoke testing is the short check that decides whether a new build is worth testing at all. What belongs in the suite, how long it should take, and how to wire it into CI.
Back to blog

What is smoke testing? A practical guide with examples

Short answer

Smoke testing is a small set of checks run on every new build to decide whether it is stable enough to test at all. It covers the critical paths one step deep: the app starts, users can log in, the main screens load, the core action works. If any check fails, the build is rejected before anyone spends time on it.

Most teams run some form of smoke test, but many run one that is too slow, too flaky or pointed at the wrong build. This guide covers what a smoke test is, when to run it, what a good suite contains, how to build and automate one, and the mistakes that make a suite stop being trusted.

Article details
Question
What is smoke testing and how do you build a smoke suite?
Audience
Testers, developers, QA leads and release managers
BetterQA team
50+ engineers, founded 2018
Clutch rating
4.9 / 5 from 71 reviews

Smoke testing, defined

A smoke test is a short, broad check of a new build that confirms it starts, its main screens load and its critical paths work. It is a gate: the output is go or no-go. If it passes, the build moves on to functional, regression and exploratory testing. If it fails, the build goes back to development and nobody runs the rest of the plan against it.

The name comes from hardware: switch the new board on, and if smoke comes out, stop. In software it is also called a build verification test (BVT), and some teams say confidence testing. All three names describe the same thing.

Smoke testing is often confused with other short checks that run after a change. For a side-by-side comparison with worked examples of each, read our guide to smoke testing vs sanity testing. The rest of this page is about smoke testing alone.

The one rule: a smoke test is broad and shallow. It touches many areas, one step deep each. The moment it starts testing edge cases in one area, it has become a different kind of test and it will get slower every sprint.

When to run a smoke test

Run it whenever a build changes and before anyone invests time in it. In practice that means:

  • On every build or pull request, as an early stage of the CI pipeline, so a broken build never reaches a test environment.
  • After every deployment to an environment: dev, QA, staging and production. A build that passed in CI can still fail on a misconfigured server, a missing secret or a database that was not migrated.
  • After an infrastructure or configuration change, even when no application code changed. A new certificate, a changed environment variable or an upgraded runtime can all take the app down.
  • Before handing a build to manual testers, so their time goes on real testing rather than discovering that login is broken.
  • After a hotfix goes live, to confirm the fix did not take something else down on the way out.

Smoke testing is the first activity in the execution phase of the software testing life cycle. Everything else waits for it.

What a smoke suite covers

For a web application, the checks ask whether the app responds and is the version you meant to deploy, whether a user can log in, whether the main navigation loads, whether the central object (an order, a patient record, a project) can be created and saved, and whether critical integrations answer. That is usually ten to thirty checks. Aim for a runtime under fifteen minutes. A suite that takes longer gets skipped under deadline pressure, which is exactly when it would have paid off.

A smoke test example

For an online shop, ten checks, each with a pass condition two people would judge the same way:

CheckPasses when
Deployed versionThe version endpoint returns the commit the pipeline just built
Home pageLoads with a 200 status and no errors in the browser console
LoginA seeded customer account logs in and lands on its account page
SearchA search for a known product returns that product
Product pagePrice, stock status and the add to cart button are all shown
CartAdding an item updates the cart count and the total
CheckoutThe flow reaches the payment step using the provider's test mode
Order recordA test order placed by the suite exists in the database with the right total
Admin loginAn admin account reaches the order list and sees the new order
IntegrationsThe health endpoint reports the database, payments and email service as up

Notice what is missing: coupon edge cases, address validation, a browser matrix. Those belong in functional and regression testing. Put the version check first, because a stale build produces results that look completely plausible.

Smoke tests for other kinds of product

The same shape works elsewhere. For an API, call the health endpoint, authenticate, read one known record, write one test record and delete it. For a mobile app, install the build, launch it, log in, open the main tabs and perform the core action once. For a data pipeline, run one small batch end to end and check the row count and a known value in the output.

How to build a smoke test suite

  1. List what would stop a release. Ask the product owner and support: which failures would make you roll back immediately? Those are your candidates. Anything that would only be logged as a bug is not.
  2. Reduce each to one check. One path, one step deep, one pass condition written so two people would agree on the result.
  3. Set the runtime budget before writing a line. Fifteen minutes is a good ceiling. Write it down, because it is the rule the suite will be pressured to break.
  4. Seed your own test data. Use dedicated accounts and records that the suite creates or resets, never shared data a person may have changed.
  5. Order the checks by dependency. Version, then availability, then login, then everything that needs a logged-in user. Stop on the first failure that makes the rest meaningless.
  6. Run it by hand first. A written checklist run manually for a few builds shows which checks are stable and worth automating.
  7. Review it every release. Remove checks for features that no longer matter and keep the total inside the budget.

How to automate smoke testing in CI

A smoke suite runs on every build, its steps rarely change and its result is pass or fail, which makes it the best first candidate for automation. A setup that holds up in practice:

  • Tag the smoke tests inside the main test project (for example a @smoke tag in Playwright or Cypress) instead of keeping a separate copy that drifts.
  • Make it a required pipeline stage that runs right after the build and after each deployment, and blocks the next stage when it fails.
  • Fail fast. Stop at the first critical failure and report it clearly, rather than running twenty more checks against a dead build.
  • Point it at the environment, not a hard-coded URL, so the same suite runs on staging and on production after a deploy.
  • Keep production runs read-only or self-cleaning. Use test accounts and the payment provider's test mode, and delete anything the suite creates.
  • Report where the team already looks: the pull request, the chat channel, the bug tracker. A failure nobody sees is the same as no test.

Then run the full functional and regression suites nightly or before release. The smoke stage decides whether those longer runs are worth starting.

What a failed smoke test means

A failed smoke test rejects the build. Testing around it is a bad trade: every later result is about a build you already know is broken, and you cannot tell which failures are the original defect and which are new. Reject it, log the failure with the build number and the failing check, get a fixed build and start again from the top of the suite.

If the failure is in the suite rather than the product (a changed selector, expired test data, a slow environment), fix the check the same day. A smoke suite that cries wolf trains the team to ignore it.

The mistakes that come up most

  • Letting the smoke suite grow every time a bug escapes, until it takes ninety minutes and nobody runs it. Keep the runtime budget: if a new case pushes it past fifteen minutes, an old one leaves.
  • Testing the wrong build. Make the version check the first step.
  • Skipping smoke for a small change. A CSS specificity change can hide a login button, and a config change can point the build at the wrong database.
  • Tolerating a flaky smoke suite. Being believed is its entire job. Fix or delete flaky checks.
  • Running it only in CI. A build that passed in the pipeline can still fail once it is deployed. Run the suite against every environment you deploy to.
  • Sharing test data with people. A tester who changes the seeded account's password breaks every run after it.

How we run smoke testing at BetterQA

We build and maintain smoke suites as part of embedded QA work. When a client already has one, we usually start by cutting it to something that runs in under fifteen minutes and can be trusted. The usual setup is a fast smoke set on every commit or pull request and the full suite nightly, in GitHub Actions, GitLab CI, Jenkins or CircleCI. The tests live in the client's repository, written in Playwright or Cypress, or recorded as journeys in Flows, our browser automation tool. Bugs the suite finds are logged in BugBoard, our test management tool.

If you want this built and kept running, our test automation team can set it up, or our QA outsourcing team can own the whole testing function.

Frequently asked questions

It is a short set of checks that decides whether a build is worth testing. For a banking app: open the app, log in with a test account, see the balance, open the transaction history and start a transfer up to the confirmation screen. If the app crashes at login, the build is rejected and nobody tests transfer limits.
Build verification testing, also called a build verification test or BVT. Some teams say confidence testing. All describe the same short check on a new build.
Usually ten to thirty for a single application. The number matters less than the runtime: keep the suite under about fifteen minutes so it runs on every build. If it keeps growing, it is collecting checks that belong in regression testing.
QA engineers usually design and own the suite, and the CI pipeline runs it automatically on every build. Developers often run it locally before opening a pull request. Where there is no automation yet, a tester runs it by hand from a written checklist.
Yes, and you should after every deployment. Keep production runs read-only or self-cleaning: use dedicated test accounts, the payment provider's test mode, and delete anything the suite creates so real users and reports are not affected.
Automated wherever the product allows. They run on every build, the steps rarely change and the result is pass or fail, which suits automation. Start with a written manual checklist if you have nothing yet, then script it once the paths are stable.

Where the definitions come from

Terms follow the ISTQB glossary (glossary.istqb.org) and ISO/IEC/IEEE 29119 (ISO page) for documentation. The examples and the fifteen-minute budget are our own working practice, not figures from those standards.

Want smoke tests that run on every build?

Tell us what you are testing and we reply within one business day. We build the suite in your pipeline, so it stays yours.

Book a call Test automation
Share the Post: