Automated Smoke Test: Step-by-Step Guide (2026)

An automated smoke test is a short, high-level check that confirms the most important parts of a build work before deeper testing. To automate it, pick a few critical user journeys, run them in CI on

By · January 26, 2026 · Updated November 15, 2026 · 9 min read · Testing Guides

An automated smoke test is a short, high-level check that confirms the most important parts of a build work before deeper testing. To automate it, pick a few critical user journeys, run them in CI on every build, and fail the pipeline when they fail. The goal is not to prove the app is perfect; it is to prove the build is stable enough to test.

What is an automated smoke test?

A smoke test answers one question: is this build worth testing further?

The name comes from hardware engineering: power on a new device and check whether smoke comes out. In software, the idea is similar. You run a small set of basic checks to see whether the build is fundamentally broken.

Automated smoke testing means those checks run without a person clicking through the app each time. The suite usually runs in CI/CD after a build is created, before QA starts, or after a deployment.

A good smoke test is:

What does a software smoke test detect?

A smoke test detects build-level failures, not deep product defects.

Typical checks include:

It does not replace unit tests, integration tests, regression tests, performance tests, or security tests.

Smoke test vs unit, sanity, and regression tests

These terms are often mixed up. They serve different purposes.

Test typeScopeWhen it runsMain question
Unit testOne function, class, or moduleDuring developmentDoes this small piece of code behave correctly?
Smoke testA few critical flowsAfter a build or deployIs the build stable enough to test?
Sanity testNarrow area after a small changeAfter minor fixesDoes this specific area still work?
Regression testBroad set of existing featuresBefore release or after major changesDid we break something that used to work?

A smoke test is broad and shallow. A sanity test is narrow and deeper. A regression test is broad and usually longer.

When to run automated smoke testing

Run automated smoke tests at these points:

  1. After every build in CI.
  2. Before deploying to QA or staging.
  3. Before promoting a release candidate.
  4. After a production deployment, as a health check.
  5. On a schedule, such as nightly, to catch environment drift.

For mobile teams, an automated smoke test app check often covers launch, login, main navigation, and one core flow. For web teams, it often covers page load, authentication, search, and checkout.

How to create an automated smoke test

Follow these steps to build a smoke suite that runs reliably.

1. Pick the critical user paths

Start with the flows that break the product if they fail.

Examples:

Do not try to test everything. A smoke test is not a full regression suite.

2. Keep the suite small and fast

A smoke suite should run in a few minutes. If it takes too long, teams start ignoring failures.

Keep only checks that prove the build is usable. Move slower edge cases to regression tests.

3. Make test data repeatable

Flaky smoke tests destroy trust. Use stable test data and isolated environments.

Good practices:

4. Tag the smoke suite

Separate smoke tests from other tests so CI can run only the critical subset.

Example for Python:


# pytest.ini
[pytest]
markers =
    smoke: critical build checks

Example for Playwright:


// playwright.config.ts
import { defineConfig } from '@playwright/test';

export default defineConfig({
  projects: [
    {
      name: 'smoke',
      testMatch: /.*\.smoke\.spec\.ts/,
    },
  ],
});

5. Run smoke tests in CI

Add the smoke suite to your pipeline so it runs on every relevant build.

Example GitHub Actions workflow:


name: Automated smoke test

on:
  push:
    branches: [main]
  pull_request:

jobs:
  smoke:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci
      - run: npm run test:smoke
      - uses: actions/upload-artifact@v4
        if: failure()
        with:
          name: smoke-report
          path: test-results/

The important part is not the exact tool. The pattern is:

  1. Build or deploy the app.
  2. Run the smoke suite.
  3. Fail the pipeline if a critical check fails.
  4. Save logs, screenshots, or reports.

6. Report failures clearly

A smoke test failure should be easy to understand.

Include:

If the report says “login failed,” that is not enough. Say whether the page loaded, the button was missing, the API returned an error, or the app crashed.

7. Prune the suite regularly

Smoke tests can become bloated. Review them when:

Keep the suite honest. If a smoke test is not protecting a critical path, remove or reclassify it.

Smoke test software options

The best smoke test software depends on your stack.

For many teams, the right answer is a combination: scripted smoke tests for known critical paths, plus exploratory testing to catch what nobody thought to script.

Where autonomous exploratory testing fits

Scripted smoke tests check what you already know to test. They are fast and deterministic, but they only follow the paths you wrote.

Autonomous exploratory testing adds a different layer. SUSA explores an Android app or website using real user personas, such as curious, impatient, novice, adversarial, or elderly. It taps buttons, follows flows, and reports crashes, dead ends, broken interactions, and UX friction that scripted tests may miss.

It is not a replacement for CI services, device clouds, or frameworks like Playwright and Appium. It complements them.

For a mobile build, SUSA can produce a JUnit report that CI can read:


pip install susatest-agent
susatest-agent test ./app-release.apk --format junit --output results.xml

The API key can be passed with --api-key, set as SUSA_API_KEY, or stored with susatest-agent login.

For web targets, SUSA can run in its cloud browser or on your own machine with --web. For Android, it can run on a real device, either in SUSA’s cloud or on your own phone via susatest-agent connect.

This is useful when your scripted smoke tests pass, but real users still hit bugs. Autonomous exploratory testing can find issues in unexpected states, broken navigation, and flows that no one thought to script.

For more on this approach, see the guide to autonomous mobile QA and CI/CD for mobile autonomous testing. You can also review the SUSA docs.

Troubleshooting automated smoke test failures

The smoke test passes locally but fails in CI

Common causes:

Fix by making CI closer to local runs. Pin browser versions, use explicit waits, and keep test data deterministic.

The smoke test is flaky

Flaky smoke tests are worse than no smoke tests because teams start ignoring them.

Check for:

Use stable selectors, isolated data, and retries only for known infrastructure problems, not product bugs.

The suite is too slow

A slow smoke suite is often a regression suite in disguise.

Remove checks that are not critical. Run non-critical tests later. Use parallel execution only if the environment can handle it.

Mobile smoke tests fail on devices

Mobile builds often fail because of device-specific issues:

Use real devices or device clouds when possible. For exploratory checks across devices, see manual vs autonomous QA economics.

Failures are hard to reproduce

Save artifacts:

If a developer cannot reproduce the failure, the smoke test is not useful enough.

Best practices for smoke testing automation

If your scripted smoke suite is becoming a maintenance burden, try SUSA for autonomous exploratory checks that use no test scripts.

Frequently asked questions

How much will a smoke test cost?

There is no single price for a smoke test. Cost depends on the scope of the checks, the tools you use, the environments you need, and how much engineering time you spend maintaining the suite.

Open-source smoke testing software can reduce tool cost, but it still takes time to write and maintain. Hosted CI, device clouds, and commercial QA tools may add subscription costs. If you evaluate autonomous testing, compare the cost of building and maintaining scripts against the value of broader exploratory coverage.

What does a smoke test detect?

A smoke test detects whether a build is fundamentally usable. It checks that the app launches, critical screens load, core flows work, required APIs respond, and no fatal errors occur.

It is not designed to find every bug. It is designed to catch showstoppers early.

Can you explain smoke testing in a simple way?

Yes. Smoke testing is a quick “does this thing even work?” check.

Before you spend hours testing details, you run a few basic checks. If the app crashes on launch or login is broken, the build fails the smoke test and goes back to development.

How do you perform a smoke test?

To perform a smoke test:

  1. Pick the most important user flows.
  2. Create a small set of checks for those flows.
  3. Run the checks against the new build.
  4. Fail the build if a critical flow is broken.
  5. Save logs, screenshots, or reports.

For automated smoke testing, run those checks in CI after each build or deployment.

What is the difference between smoke testing and sanity testing?

Smoke testing checks whether the whole build is stable enough to test. It is broad and shallow.

Sanity testing checks a narrow area after a small change. It is deeper but limited in scope.

Example:

What is the difference between a smoke test and a regression test?

A smoke test runs early and checks only critical functionality.

A regression test runs later and checks a broader set of existing features to make sure recent changes did not break them.

Smoke tests are usually faster. Regression tests are usually more comprehensive.

What is the best automated smoke test tool?

There is no single best automated smoke test tool. The right choice depends on your stack.

For web UI tests, Playwright, Selenium, and Cypress are common. For API tests, pytest, JUnit, REST Assured, and Postman/Newman are common. For mobile apps, Appium, Espresso, XCUITest, and Detox are common.

If you want autonomous exploratory testing with no test scripts, SUSA can complement your existing smoke tests by exploring the app like real users and reporting crashes, dead ends, and UX friction.

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 11 real users — finds bugs, accessibility violations, and security issues. No scripts. New to the category? Start with what autonomous product intelligence & QA means.

Try SUSA Free