A smoke test is a short list of checks that the most important paths of an app work at all. This page shows a smoke test template with six worked examples for an example online shop, and gives it to you as an Excel workbook, a CSV file or Markdown.
How to use it#
- Read the examples above: each row names an area, one check, numbered steps and an expected result you can see.
- Select Download .xlsx for a workbook with a How to use tab, the examples and 20 blank rows, or Download .csv to import the rows into another tool.
- Replace the examples with your own app's most important paths, and keep the list short.
- Run it on every new build before any other testing, and set Status to Passed, Failed or Blocked as you go.
What a smoke test is for#
A smoke test answers one question: is this build worth testing further? If the home page does not load or nobody can sign in, there is no point running two hundred detailed checks against it. So the list covers breadth, not depth: one check for each part of the app that everything else depends on. In the examples, a failed check on the cart blocks the checkout check after it, and the Notes column says so. That is the pattern to follow: when a smoke check fails, stop, report it, and wait for a new build.
Keeping it small#
Ten to twenty rows is usually enough, and the whole list should take minutes, not hours. Pick the paths that would stop most of your users: opening the app, signing in, the main thing people come to do, and paying if you charge. Leave edge cases, wrong input and rare settings to your regression and functional tests. If a row keeps passing for months and nothing depends on it, it probably belongs in the regression list instead.
Questions#
What is the difference between smoke and sanity testing?#
A smoke test checks the whole build broadly before deeper testing. A sanity test checks one fix or change narrowly, with the things right next to it.
How often should a smoke test run?#
On every new build that will be tested or released. Because it is short, running it often costs little.
Is the template free?#
Yes. Download it without an account and use it in your own plans and tools.
Will these examples fit my app?#
No. They are for an example online shop and show what a well-written row looks like. Replace them with your own app's paths.