Skip to content
Alphabin

Sanity Testing is a narrow, quick round of testing performed after a bug fix or small change to confirm that the affected functionality works as intended. If the sanity check fails, the build is rejected without spending time on full regression testing.

Key components of sanity testing include:

  • Narrow Scope: It covers only the changed feature and the functions closely related to it, rather than the whole application.
  • Speed: Sanity tests are short and are often run informally, without detailed scripts.
  • Gatekeeping: A passing sanity check gives the team confidence to proceed with broader regression testing.
  • Logical Verification: Testers confirm that the change behaves rationally, for example that a corrected calculation now returns sensible results.

Sanity testing is often confused with smoke testing. Smoke testing is a broad, shallow check that a new build is stable enough to test at all, while sanity testing is a deep, narrow check of a specific change in an already stable build.