← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
← Back to glossary

Smoke Testing

testing Beginner
debt(d9/e3/b5/t3)
d9 Detectability Operational debt — how invisible misuse is to your safety net

Closest to 'silent in production until users hit it' (d9). The absence of smoke testing is invisible — there is no compiler, linter, or static tool that flags 'you have no post-deploy smoke tests.' The detection_hints confirm no automated post-deploy verification and manual checks skipped under pressure; the gap only surfaces when users hit a broken deployment.

e3 Effort Remediation debt — work required to fix once spotted

Closest to 'simple parameterised fix' (e3). The quick_fix describes running 5-10 critical path checks post-deploy with tools like playwright, cypress, curl, or github-actions. This is a small, focused addition (a CI pipeline step or script) rather than a one-liner swap, but it doesn't span multiple files or require cross-cutting refactoring.

b5 Burden Structural debt — long-term weight of choosing wrong

Closest to 'persistent productivity tax' (b5). Smoke testing applies broadly to web and API contexts, and the common_mistakes note that not automating or not rolling back automatically creates ongoing operational risk. Once adopted, the suite must be maintained alongside every deployment pipeline change, touching devops, CI/CD, and multiple teams' workflows — a persistent but not architectural tax.

t3 Trap Cognitive debt — how counter-intuitive correct behaviour is

Closest to 'minor surprise (one edge case)' (t3). The misconception is specific and bounded: developers conflate smoke tests with integration tests, making them too detailed and slow. This is a documented, common confusion but not a catastrophic or system-wide misunderstanding — a competent developer who reads about smoke testing will quickly learn the 'shallow vs. deep' distinction.

About DEBT scoring →

Also Known As

sanity testing build verification test BVT

TL;DR

A minimal set of tests run immediately after deployment to verify the application is alive and its critical paths are functional before deeper testing or traffic.

Explanation

Smoke tests answer 'did the deployment break anything obvious?' — they are fast, broad, and shallow. A smoke test suite might check: the home page returns 200, the login endpoint responds, the database is reachable, and a health check passes. If smoke tests fail, the deployment is rolled back immediately without running the full test suite. The name comes from electronics — power on a new circuit and check if it smokes before deeper testing.

Common Misconception

Smoke tests are the same as integration tests — smoke tests are shallow (does it respond?) while integration tests are deep (does the business logic work correctly?).

Why It Matters

A full test suite takes minutes; smoke tests take seconds — they catch catastrophic deployment failures (missing env vars, database connection errors) instantly before users are affected.

Common Mistakes

  • Smoke tests that are too detailed — they should be fast and broad, not thorough.
  • Not automating smoke tests post-deploy — manual checks are skipped under pressure.
  • Not rolling back automatically when smoke tests fail — the value is fast automated rollback.
  • No smoke tests at all — discovering a broken deployment from user complaints instead of monitoring.

Code Examples

✗ Vulnerable
# No post-deploy verification:
deploy_to_production()
# Wait for user complaints or monitoring alerts
# Average time to detect: 5-30 minutes
✓ Fixed
# Automated smoke test in deploy pipeline:
deploy_to_production()

# Run smoke tests immediately:
curl -f https://app.example.com/health || rollback_deploy
curl -f https://app.example.com/api/ping || rollback_deploy
curl -f https://app.example.com/ | grep -q 'Welcome' || rollback_deploy

echo 'Smoke tests passed — deploy confirmed'

Added 15 Mar 2026
Edited 22 Mar 2026
Views 325
Rate this term
No ratings yet
🤖 AI Guestbook educational data only
| |
Last 30 days
0 pings W 0 pings T 0 pings F 0 pings S 0 pings S 0 pings M 0 pings T 0 pings W 0 pings T 0 pings F 0 pings S 0 pings S 0 pings M 0 pings T 0 pings W 2 pings T 0 pings F 3 pings S 0 pings S 1 ping M 1 ping T 2 pings W 1 ping T 2 pings F 2 pings S 0 pings S 0 pings M 1 ping T 1 ping W 1 ping T
Google 1
Perplexity 1
Google 227 Perplexity 36 Amazonbot 19 Scrapy 5 Ahrefs 4 ChatGPT 4 Unknown AI 3 SEMrush 3 Majestic 1 Qwen 1 Meta AI 1 Bing 1 Sogou 1
crawler 301 crawler_json 4 pre-tracking 1
DEV INTEL Tools & Severity
🟠 High ⚙ Fix effort: Medium
⚡ Quick Fix
Run 5-10 critical path smoke tests immediately after every deployment — if checkout, login, and homepage load successfully, it's safe to shift traffic; if not, roll back automatically
📦 Applies To
any web api
🔗 Prerequisites
🔍 Detection Hints
No automated post-deploy verification; deploying then manually checking homepage; no rollback triggered by failed health checks
Auto-detectable: ✓ Yes playwright cypress k6 curl github-actions
⚠ Related Problems
🤖 AI Agent
Confidence: Low False Positives: High ✗ Manual fix Fix: Medium Context: File Tests: Update

✓ schema.org compliant