Smoke Tests
Purpose
Smoke tests provide a fast confidence check after build/deploy by exercising critical user-facing flows.
Scope
Current smoke scope includes: - Public page rendering. - Admin login path. - Search request path. - Rendering with navigation/footer settings enabled.
Current implementation
- Command:
make smoke - Execution:
python manage.py test --tag smoke - Test class:
backend/blog/tests.py(SmokeTests)
Covered scenarios: - Blog index and blog detail return HTTP 200. - Admin login succeeds and dashboard is reachable. - Search returns an expected indexed page. - Navigation/footer settings do not break page rendering.
Code locations
- Smoke tests:
backend/blog/tests.py - Make target:
Makefile
How to verify
make buildmake smoke
Guidelines for adding smoke tests
- Keep tests deterministic and independent of external services.
- Cover only end-to-end critical paths.
- Prefer stable server-side assertions over brittle UI details.
- Tag tests with
@tag("smoke").