liveBook · Manning

Smoke test

As explained in Learn Docker in a Month of Lunches, Second Edition

A smoke test is a short, focused test that checks whether a software build or deployment performs its essential functions.

A smoke test is a short, focused end-to-end check that verifies an application build or deployment performs its essential functions. A typical script starts the application with Docker Compose, sends web requests, confirms that the application does something useful, and shuts the containers down. section 16.3

Use smoke tests to keep build and deployment feedback practical:

  • Run them after earlier pipeline stages establish reasonable confidence in the build. section 16.3
  • Choose local images while developing, or staging images when reproducing a tester-reported issue. section 16.3
  • Extend the script with fuller BDD or simulated-browser tests when basic checks are insufficient. section 16.3

Run the local smoke test

Use the images already built on the developer machine: ./smoke-test.ps1 -Local The same script can run without the flag to pull the latest staging images. section 16.3

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains the Docker Compose workflow and image choices, but stops short of detailed test design or browser automation.
Examples
Demonstrates a PowerShell script, local-image execution, staging-image execution, web requests, and container shutdown.
What it assumes
Assumes containerized application images and Docker Compose, while demonstrating the workflow through a single runnable script.
What you can do after
Apply it via Docker Compose and PowerShell to check whether an application starts and responds during a build.
How it connects
Connects smoke tests with end-to-end testing, Docker Compose, CI/CD, BDD, and simulated browsers.

Also explained in

Compare how 4 books explain smoke test →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.