Testing Comparisonbeginner

Smoke Testing vs Sanity Testing

Smoke testing checks that a new build is stable enough to test at all; sanity testing checks that a specific fix or change works. See a table and an example of each.

4 min read

Our verdict in 30 seconds

Smoke testing is a quick, broad check of the most important features on a new build to decide whether it is stable enough for detailed testing. Sanity testing is a quick, narrow check of one changed area, such as a bug fix, to confirm it works before deeper testing. Smoke testing asks 'is the build testable?'; sanity testing asks 'does this change make sense?'

On This Page

Smoke testing vs sanity testing is one of the most asked manual testing interview questions because the two sound similar. Both are short, quick checks done before deeper testing. The difference is scope. Smoke testing looks at the whole application at a shallow level to decide if a new build is worth testing. Sanity testing looks at one area in more depth to confirm a specific change or fix works.

Smoke testing vs sanity testing: the comparison table

Point Smoke testing Sanity testing
Question it answers Is this build stable enough to test? Does this fix or change work as expected?
Scope Broad: main features across the app Narrow: the changed feature and close neighbours
Depth Shallow A little deeper in that one area
When On every new build, before other testing After a bug fix or small change, on a fairly stable build
Also called Build verification testing (BVT) Often treated as a quick subset of regression
Scripted? Usually a fixed, documented checklist Often unscripted, decided by the tester
Automated? Commonly automated in CI More often manual
Done by Testers, sometimes developers Testers
If it fails Build is rejected and sent back The fix is sent back; wider testing waits

Smoke testing meaning

The name comes from hardware: switch on a new circuit board and see if it smokes. If it does, there is no point testing anything else.

In software, a smoke test runs a short list of critical checks on every new build. If any of them fail, the build is rejected and testers do not waste hours on it.

Smoke testing example

A shopping app gets a new build, version 2.4, with many changes. Before detailed testing, the tester runs this smoke checklist:

# Check Result
1 App opens and the home page loads Pass
2 User can log in Pass
3 Search for "shoes" shows results Pass
4 Product page opens Pass
5 Item can be added to cart Fail: cart page shows an error
6 Checkout page opens Not run

Check 5 fails. Adding to cart is a core feature, so the tester rejects build 2.4 and reports it. Nobody starts the full test cycle until a new build passes the smoke test. The checklist takes maybe 15 to 30 minutes, and it saves the team from testing a broken build all day.

Notice that the smoke test did not check details such as discount rules or address validation. It only checked that the main doors open.

Sanity testing meaning

Sanity testing is a focused check after a specific change. The build is already fairly stable; the question is whether the fix works and did not obviously break things right next to it.

Sanity testing example

In build 2.5, developers fixed a bug: "Coupon SAVE10 gives 100% discount instead of 10%." The tester runs a quick sanity check on the coupon area only:

  1. Apply SAVE10 to a cart of 1,000 rupees. Expected total: 900. Result: 900. Pass.
  2. Apply SAVE10 twice. Expected: rejected the second time. Pass.
  3. Remove the coupon. Expected: total returns to 1,000. Pass.
  4. Apply an expired coupon. Expected: error message. Pass.

The fix is sane, so the build moves on to regression testing. The tester did not re-check login, search or the home page, because those did not change.

Common mistake: Calling any short test a "sanity test". If you are checking the whole app at a basic level on a new build, that is smoke testing. If you are checking one changed area, that is sanity testing. Name them correctly in bug reports and interviews.

How smoke, sanity and regression fit together

A typical flow when a new build arrives:

  1. Smoke test the new build. Fail: reject it. Pass: continue.
  2. Run functional testing on new features.
  3. When a bug fix arrives, run a sanity test on that area.
  4. Run regression testing: the wider suite that checks old features still work after changes.
Smoke Sanity Regression
Scope Wide, shallow Narrow, focused Wide, deep
Time Minutes Minutes Hours or days
Purpose Build is testable Change works Nothing old broke

Different companies, different words

Not everyone uses these terms the same way. The ISTQB glossary, for example, has listed "sanity test" as another name for "smoke test", and some teams use the words loosely. In interviews and in most Indian IT companies, the distinction above is what people expect. When you join a team, ask what their smoke suite contains; that matters more than the label.

Automating the smoke suite

Because the smoke checklist is the same for every build, it is a good first candidate for automation. A common setup:

  • 10 to 20 automated UI or API checks tagged as smoke
  • they run on every new build in the CI pipeline
  • a failure blocks the build from reaching testers

In TestNG this is often done with @Test(groups = {"smoke"}); see JUnit vs TestNG for how groups work. Sanity checks change with each fix, so they are usually manual.

Where to go next

Both smoke and sanity tests are black box tests; read black box vs white box testing to see why. Learn where they sit among other test types in functional vs non-functional testing, and how automation fits in manual vs automation testing. Then practise with manual testing interview questions, and see the full path in how to become a software tester.

Interview note: Give one example of each: "When build 2.4 arrived, I ran a smoke test on login, search, cart and checkout; cart failed, so we rejected the build. When the coupon bug was fixed in 2.5, I ran a sanity test only on coupons before regression." Examples show you have actually done it.

Frequently Asked Questions

Is sanity testing a subset of regression testing?
It is often described that way. Sanity testing picks a small part of the regression suite related to the change and runs it quickly. If it passes, the full regression run follows.
Is smoke testing done manually or automated?
Both. Many teams automate the smoke suite and run it on every new build in the CI pipeline, because it is the same set of checks each time. Sanity checks are more often manual, because they depend on what just changed.
What is another name for smoke testing?
Smoke testing is also called build verification testing (BVT) or build acceptance testing. Some people also call it a confidence test.
Are smoke testing and sanity testing the same?
Some sources, including the ISTQB glossary, have treated sanity test as another name for smoke test. Many companies and most Indian interviewers still expect the distinction on this page: smoke is broad and shallow on a new build, sanity is narrow and focused on a change.
Who performs smoke and sanity testing?
Testers usually do both. Developers sometimes run a smoke check before handing over a build, and in CI pipelines an automated smoke suite runs without anyone triggering it by hand.

Want to Build Your Career in Java Full Stack with AI?

Join CodeBegun and train with working industry engineers — Discover CodeBegun's Java Full Stack track

Apply for Demo Class →
Siva Prasad Galaba
Founder, CodeBegun · Staff Engineer

Founder of CodeBegun. 15+ years building Java systems at companies like Crunchyroll. Teaches Java, Spring Boot and system design the way the industry actually works, and mentors students through projects, mock interviews and placement preparation.

Technically reviewed by CodeBegun Technical TeamLast reviewed 5 December 2026 LinkedIn

More comparisons

View all
Chat with us