Software Testing / Learning brief

Leo runs the tests inside a container in the pipeline

What this means in plain language

Leo builds a test image, orders the steps for the cache, keeps secrets out and saves the report folder.

Understand the full idea, step by step

Analogy: packing a suitcase in layers for a trip. You put the things that never change at the bottom, such as shoes. The things that change each day go on top. Next trip, you only pack the top again. You also leave your house key at home.

The bottom is the cached layers, the top is the test code, and the key is a secret. Leo, a tester at Daily List, a to-do list app, packs the test suitcase for the pipeline.

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Hands-on steps for this tool. The people and the app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.

Sources for this brief — 4 sources
  1. Market practice

    Build cache invalidation (Docker documentation) ↗ — Docker · Docker docs on the build cache: steps are checked in order, and after one miss every later step is built again, so put steps that change least first (search excerpt, page not opened)

    The Docker pages on the build cache: steps are checked in order, and once one step misses the cache every later step is built again. Docker advises putting steps that change less often first, such as copying dependency lists before the source. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Build secrets (Docker documentation) ↗ — Docker · Docker docs on build secrets: build arguments and environment variables are not suitable for secrets, and a secret mount keeps the secret out of the image (search excerpt, page not opened)

    The Docker pages on build secrets: build arguments and environment variables are not suitable for secrets. A secret mount makes a secret available to one build step without keeping it in the image or the cache. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Bind mounts (Docker documentation) ↗ — Docker · Docker docs on bind mounts: the volume option takes a host path, then a container path, so files the container writes appear on the host (search excerpt, page not opened)

    The Docker pages on bind mounts: the volume option takes a host path, then a container path. A missing host folder is created for you with that option. A read-only flag can be added, and bind mounts can write to host files by default. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREDocker in a pipeline: build the image, run the tests inside it and keep the reportBuild the test image in a pipeline, run the tests inside it, reuse cached layers, keep secrets out of the image and save the report folder.Opens at L0 Explain simply · about 16 min

Related briefs