A sanity test checks one change narrowly: that a fix or a small new feature works, and that the things right next to it still do. This page shows a sanity test template with five 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 the change it checks in the Change checked column, so one release can hold several changes.
- 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.
- For each fix or change in a build, add a few rows: the change itself, the case that used to fail, and one or two things beside it.
- Run them as soon as the build arrives, and set Status as you go.
What a sanity test is for#
When a developer says a bug is fixed, a sanity test is the quick check that it really is, before anyone spends time on a full pass. The examples show two changes. For a fixed discount code, they check that the code applies, that an expired code is still refused, and that removing the code restores the total. For a new delivery date on product pages, they check that the date shows, and that an item out of stock shows none. One of those rows failed on mobile, and its note says what was seen, which is what the developer needs to fix it.
Writing good rows#
Name the change in words someone outside the team would understand, or paste the ticket's title. Include the case that was reported, written so that it fails on the old build and passes on the new one. Add the neighbours: the same screen with different input, and the step right after the fixed one. Keep it narrow; if you find yourself checking the whole checkout, that is a regression test.
Questions#
What is the difference between sanity and regression testing?#
Sanity tests check one change quickly. Regression tests re-check features that already worked, across the whole app, so a change does not quietly break them.
Should sanity rows be kept after the release?#
The row for a reported bug is worth keeping: move it into your regression list so the bug cannot come back unnoticed.
Is the template free?#
Yes. Download it without an account and use it in your own plans and tools.