What is Smoke Testing?

Quick checks that the most important parts of your app still work.

You may encounter times when a deploy goes out, every test passed, and the home page is blank. Maybe an environment variable is missing or the API URL is wrong. Nothing in your unit tests could have caught it, because the problem only exists on the deployed site. This is what smoke tests are for.

A smoke test is a small set of quick checks that the most important paths in your app work after a build or deploy. It answers one question: does it catch fire?

The name comes from hardware, where the first test of a new board was turning it on and checking that no smoke came out.

Smoke Testing vs Other Tests

These terms get mixed up a lot, so here's the short version:

  • Smoke tests check that the app is up and the critical paths work at all. They run in a few minutes, right after a deploy.
  • Sanity tests are a quick check that a specific fix or change works, usually done by hand after a small release.
  • Regression tests check that existing features didn't break, and cover much more of the app.
  • Full end-to-end tests walk through complete user flows in detail, including the edge cases.

A smoke test is wide and shallow. It doesn't care if the discount code validation is right. It cares that the checkout page loads.

What to Include

Pick the handful of things that would make you roll back immediately if they broke:

  • The home page loads.
  • A user can log in.
  • Your most important API responds.
  • The checkout page (or whatever makes you money) renders.

Keep it to a few minutes. If the smoke suite gets slow, people stop waiting for it and it stops being useful.

The 80/20 Rule for Smoke Tests

An idea I like to use here is the 80/20 principle applied to testing: write the 20% of tests that cover 80% of the scenarios. Smoke tests need to stay small and short, but you still want each one to check as much as possible.

A happy path does a lot of this for you. Logging in and completing one real action, like adding an item to the cart, tests far more than it looks like. In one test you've checked that the page renders, the login form works, the auth service responds, the session is saved, the API returns data and the UI updates. If any of those break, the test fails.

So be smart and strategic about which tests you write. You can't overload a smoke test with everything, and you shouldn't try. Bugs will still come up no matter how many tests you have, so aiming for 100% coverage isn't the goal. The goal is a fast suite that covers the most ground with the fewest tests.

When to Run Them

Smoke tests are most useful right after a deploy, against the site you just shipped. That's the moment where things like a missing environment variable or a bad config show up, and the earlier you know, the less time users spend looking at a broken page.

The best setup runs them automatically as the last step of your pipeline. If you're new to pipelines, check out What is CI/CD? first. When a smoke test fails, the team should hear about it right away, and it should be clear whether to roll back.

Manual or Automated

A smoke test doesn't have to start as code. A short checklist that someone runs through after each release is a smoke test too, and it's a good way to figure out which checks actually matter.

Once the list is stable, automate it. End-to-end testing tools like Playwright or Cypress can open a real browser, visit your deployed site and click through the same steps in a few seconds, every time, without anyone having to remember.

Keep Them Reliable

A smoke test only helps if people trust it:

  • Keep the suite small and fast, so nobody is tempted to skip it.
  • Avoid flaky checks. If a test fails randomly, people learn to ignore it, and then they ignore the real failures too.
  • Use a dedicated test account for anything that needs a login, never a real user's.
  • When something breaks in production that a smoke test could have caught, add that check.

Smoke tests won't catch everything, and they're not meant to. They catch the big, obvious breaks fast, so you hear about a broken login from a failed check instead of from your users.

Have some feedback on this post? .