Commit 3ed0d70
chore: split e2e tests for real-time output (#152)
## Summary
- Split `make test` so e2e tests run as a separate `go test` invocation
instead of bundled in `go test ./...`
- Unit tests still run together (fast, ~2s total)
- E2e tests run alone with a banner message before they start
## Why
`go test ./...` buffers each package's output until the package
completes. Since e2e tests take ~2 minutes (testcontainers), the
terminal shows nothing for that entire duration — it looks like the
tests are hung.
Running e2e as a separate `go test ./e2e/` invocation makes it the only
active package, so output (container startup, health checks, test
progress) streams in real time.
There's no way to disable per-package buffering in `go test` when
running multiple packages in parallel — it's intentional to prevent
interleaved output. The `-p 1` flag would work but slows down the
overall run which is why it was removed
#137. The split approach
gives real-time streaming where it matters (e2e) with no performance
cost.
## Test plan
- [x] `make test` passes (all unit + e2e tests green)
- [x] E2e output streams in real time after the banner
- [x] Unit tests still run in parallel as before
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Makefile-only change that alters test execution ordering/invocation
but not production code; main risk is accidentally excluding/duplicating
packages due to the `go list | grep -v /e2e$` filter.
>
> **Overview**
> `make test` now runs non-e2e packages first and executes `./e2e` tests
as a separate `go test` step, with a banner printed before the e2e run
to make progress/logs visible while testcontainers start up.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
310bc74. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 134924c commit 3ed0d70
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
0 commit comments