mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-07 22:16:52 +02:00
perf: split monolithic E2E test into 8 parallel files
Split test/skill-e2e.test.ts (3442 lines) into 8 category files: - skill-e2e-browse.test.ts (7 tests) - skill-e2e-review.test.ts (7 tests) - skill-e2e-qa-bugs.test.ts (3 tests) - skill-e2e-qa-workflow.test.ts (4 tests) - skill-e2e-plan.test.ts (6 tests) - skill-e2e-design.test.ts (7 tests) - skill-e2e-workflow.test.ts (6 tests) - skill-e2e-deploy.test.ts (4 tests) Bun runs each file in its own worker = 10 parallel workers (8 split + routing + codex). Expected: 78 min → ~12 min. Extracted shared helpers to test/helpers/e2e-helpers.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -145,7 +145,7 @@ Spawns `claude -p` as a subprocess with `--output-format stream-json --verbose`,
|
||||
|
||||
```bash
|
||||
# Must run from a plain terminal — can't nest inside Claude Code or Conductor
|
||||
EVALS=1 bun test test/skill-e2e.test.ts
|
||||
EVALS=1 bun test test/skill-e2e-*.test.ts
|
||||
```
|
||||
|
||||
- Gated by `EVALS=1` env var (prevents accidental expensive runs)
|
||||
@@ -153,7 +153,7 @@ EVALS=1 bun test test/skill-e2e.test.ts
|
||||
- API connectivity pre-check — fails fast on ConnectionRefused before burning budget
|
||||
- Real-time progress to stderr: `[Ns] turn T tool #C: Name(...)`
|
||||
- Saves full NDJSON transcripts and failure JSON for debugging
|
||||
- Tests live in `test/skill-e2e.test.ts`, runner logic in `test/helpers/session-runner.ts`
|
||||
- Tests live in `test/skill-e2e-*.test.ts` (split by category), runner logic in `test/helpers/session-runner.ts`
|
||||
|
||||
### E2E observability
|
||||
|
||||
|
||||
Reference in New Issue
Block a user