Environments for joined-up systems
When twenty services must run to test one journey, the test environment is the hard part. Learn to list, share, check and keep it close to real.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a rehearsal stage. A play needs every actor, prop and light on the stage. If the lamp is missing, the show you practise is not the show you give. Twenty actors must all be there, in costume, on the right night.
Daily List is a to-do list app. Tom, the tester, wants to test one journey. Lily adds a task and shares the list with Sam. That journey needs the sign-in part, the task part, the sharing part and the reminder part. Each part is a small program called a service. The test setup must provide each part this journey needs. A recorded stand-in, a test program with chosen replies, may replace an outside service.
Leo, the developer, can start one service on his own laptop. Starting twenty is harder. Some run an old version. Some point at a , an email inbox made only for tests, and some at a real one. This is why the is the hard part. A test environment is the place where testers run the app: its programs, its settings and its data.
A good stage has three habits. Everyone knows who is using it. It stays close to the real show. And Tom checks that it is ready before the rehearsal starts.
The picture has a limit. A stage check cannot prove the play is good. In the same way, a ready test setup does not prove the app works. Both stages and test setups can change between checks.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Seeing the as a rehearsal stage that must hold every actor, prop and light before the show is rehearsed.
- List the parts
- Start them
- Health check
- Run the checks
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A rehearsal stage | The test environment |
| Actors, props and lights | The services, settings and data |
| A check of the stage before the rehearsal | The environment health check |
| The stage no longer matching its agreed plan | An unintended gap from the agreed environment setup |
WHERE THIS PICTURE STOPS
- A stage check does not prove the play is good. Readiness does not prove the app works, and both setups can change.
- A stage holds people who see each other, but services only talk over a network.
- A missing lamp is easy to spot, but a wrong setting can hide for weeks.
HOOK
Check the stage before the show.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
Before the first , ask of each service: which version, which mailbox, which settings and data.
| In the trick | What it stands for |
|---|---|
| version | Some run an old version |
| mailbox | Some point at a test mailbox and some at a real one |
| settings and data | The programs, its settings and its data |
TELL A FRIEND
A rehearsal stage needs every actor, prop and light. A tester checks the stage first, then rehearses.
OFTEN MIXED UP WITH Test environments and configurations. Test environments and configurations defines one test setup. This lesson checks the services, settings and data needed for a joined-up journey.
Sources & standards — 1 source
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · SYNTHETIC / TRAINING ONLY: Daily List environment manifest, ten-member requirement, blocked-journey triage and test outcomes are authored teaching cases, not vendor requirements or executed infrastructure.
What this simplifies: Invented Daily List examples and decisions. No real infrastructure, provider or personal data was used.
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.
PRACTISE AND KEEP
Sources for this topic — 14 sources
- Market practice
Dev/prod parity (The Twelve-Factor App) ↗ — Adam Wiggins · X. Dev/prod parity: time, people and tool gaps; matching backing-service types and versions. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
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.
- Market practice
III. Config (The Twelve-Factor App) ↗ — Adam Wiggins · III. Config: per-deployment values are separate from code; internal application wiring is outside that definition. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
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.
- Implementation-specific
Docker Compose overview (Docker Docs) ↗ — Docker · Overview: Compose defines services, networks and volumes and manages their lifecycle. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
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.
- Implementation-specific
Control startup order in Compose ↗ — Docker · Control startup: running is not ready; service_healthy waits on the configured healthcheck, not an entire user journey. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
Publisher primary source opened and relevant sections read on 6 November 2026 for the Agile/DevOps domain analysis. Original explanations are used; no extensive source text is copied. Also read for the CI/Containers analysis; live documentation does not establish the version installed in a learner environment.
- Implementation-specific
docker compose down (Docker Docs) ↗ — Docker · Description and Options: default container/network removal; --volumes removes declared named and attached anonymous volumes; external resources are never removed. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
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.
Verification supplement, 6 November 2026: Actual current command reference opened: default removes containers/networks, volumes remain; --volumes explicit; external volumes not removed.
- Implementation-specific
Docker volumes ↗ — Docker · A volume’s lifecycle: mounted data can outlive container removal; host bind mounts have a separate lifecycle. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.
- Implementation-specific
What is a container? ↗ — Docker · Explanation and Containers versus virtual machines: isolated processes share a kernel. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.
- Implementation-specific
Multi-platform builds ↗ — Docker · Why multi-platform builds: host kernel/architecture compatibility; image variants and emulation. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.
- Implementation-specific
Manage resource drift ↗ — HashiCorp · Introduction and refresh-only explanation: actual resources can differ from recorded state/configuration; refreshing state is not changing infrastructure. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.
- Implementation-specific
Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Make tests as isolated as possible and Avoid testing third-party dependencies: independent test state and controlled responses. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
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. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).
- Implementation-specific
Authentication (Playwright documentation) ↗ — Microsoft (Playwright) · Shared-account and per-worker guidance: tests changing server state need accounts that do not affect one another; browser context isolation alone does not isolate server data. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Implementation-specific
Stubbing (WireMock documentation) ↗ — WireMock · Basic stubbing: request matching selects a configured response; this does not exercise the real external service. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
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. Supplement6November2026: actual current and archived2.x stubbing pages opened; priority then most-recent matching stub; reset paths also documented in2.x. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.
8 November 2026: actual live WireMock Java Basic Stubbing and complete Stub Priority section/examples opened. Request mappings select configured responses; no installed-version or every-feature claim.
WireMock topic review, 8 November 2026: Basic stubbing, stub priority, unmapped replies, reset and reset-to-default: current official page opened 8 November 2026. Local examples separately checked with WireMock Java 3.13.1.
Version-specific correction: the general Reset paragraph says all mappings are removed, but WireMock Java 3.13.1 resetAll reloads defaults. See v945-wiremock-3131-reset-source and the local runtime tests. Do not infer an empty mapping list when files are present.
- Implementation-specific
How Compose works ↗ — Docker · Application model and CLI: services, networks, volumes, configs, secrets and separate projects; up, ps, logs and down commands. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.
Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · SYNTHETIC / TRAINING ONLY: Daily List environment manifest, ten-member requirement, blocked-journey triage and test outcomes are authored teaching cases, not vendor requirements or executed infrastructure.
What this simplifies: Invented Daily List examples and decisions. No real infrastructure, provider or personal data was used.
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.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.