Frequent questions about smoke tests: how they differ from sanity tests, how many to write, and when to run them.
- Smoke vs sanity: what is the difference?
A smoke test checks that the build is alive; a sanity test checks that a specific fix behaves as expected. Smoke is broader and shallower.
- How many smoke tests?
Enough to cover the critical path, no more. Five to twenty checks is typical.
- When should they run?
On every build, before the deeper suite. They are the gate, not the destination.
- Can a smoke test be manual?
Yes, but automated smoke tests are cheaper and more consistent.