Smoke vs Sanity
| Aspect | Smoke | Sanity |
|---|---|---|
| Goal | Build stability | Verify a specific change/bugfix |
| Scope | Broad, shallow | Narrow, focused |
| When | After every new build | After hotfix / minor change |
| Documented? | Usually scripted | Often unscripted |
| Owner | QA + DevOps | QA |
Example
Smoke: 'Can a user log in, see the dashboard, and check out a sample item?' Sanity: 'The hotfix changed the tax calculation for EU orders — does it apply correctly and not break US orders?'