What are smoke tests and sanity tests in a deployment pipeline?
IntermediateConceptTesting and Quality Gates
Answer
Smoke tests are a minimal set of checks right after deploy to confirm the application is up and its critical paths work (health endpoint returns 200, login works, a basic read and write succeeds). Sanity tests are a narrow check that a specific fix or feature behaves as intended. Failing smoke tests should trigger an automatic rollback.
curl -fsS --retry 10 --retry-delay 3 --retry-connrefused https://api.example.com/healthz
More on Testing and Quality Gates
What is the testing pyramid?BeginnerWhat is the difference between unit, integration, and end-to-end tests?BeginnerWhat is code coverage and is a high percentage a good target?IntermediateWhat is a quality gate in SonarQube?IntermediateHow do you integrate SonarQube into a CI pipeline and make it block on gate failure?IntermediateWhat does SonarQube's "Clean as You Code" and new code period mean?Advanced