You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/howto/TESTING.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ make e2e-test
62
62
63
63
# Build
64
64
make build # Build all targets
65
-
make build-all-linux # Build Linux binaries for Docker
65
+
make build-all-linux # Build Linux binaries for manual Compose workflows
66
66
```
67
67
68
68
### Testing Levels
@@ -88,10 +88,13 @@ make build-all-linux # Build Linux binaries for Docker
88
88
89
89
Tests use **docker-compose** via `ComposeStack` to spin up containers automatically:
90
90
91
-
1.`NewComposeStack()` registers cleanup (stop log tailing, tear down containers)
92
-
2.`Up()` starts containers, waits for healthchecks (`--wait`), and auto-tails container logs to stderr
93
-
3. Tests run against those containers with **real-time log output**
94
-
4. On cleanup, containers are torn down automatically (set `SKIP_CLEANUP=true` to keep them for inspection)
91
+
1. Each `go_test` declares its Compose file, schemas, Dockerfiles, configuration, and cross-compiled Linux service binaries in Bazel `data`.
92
+
2.`NewComposeStack()` resolves only those Bazel runfiles and stages the declared Docker build-context files in a temporary directory.
93
+
3.`Up()` starts containers, waits for healthchecks (`--wait`), and auto-tails container logs to stderr.
94
+
4. Tests run against those containers with **real-time log output**.
95
+
5. On cleanup, containers are torn down automatically (set `SKIP_CLEANUP=true` to keep them for inspection).
96
+
97
+
Automated Docker tests do not discover or mount the repository checkout. A test that adds a build-context input must add it to its Bazel `data` dependencies and its `ComposeConfig.DockerBuildContext` mapping.
0 commit comments