Manuals / Docker for QA / Chapter 2

A · Hands-on · beginner · ~40 min · Chapter 2 of 4

Compose a test stack

docker compose up should be the onboarding sentence for your test env.

Path progress
50%

Step 1 of 1

Bring something up

Use a sample stack (web + db) or your team’s compose file.

Bring something upDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →Bring something updrag · tap →Try thisdrag · tap →Follow the dashed drag · tap →

Do this now

compose up, hit a health endpoint, compose down.

Pro tip: Read logs before restarting blindly.

Was this step clear?
Chapter learning outcomes
  • compose.yml
  • Ports & healthchecks
  • Logs

Clear these before you leave