| name | run-e2e-test |
| description | Run the e2e test suite against a configured environment. Use when the user wants to run e2e tests, verify a feature end-to-end, or run a specific test by name. |
| license | MIT |
| metadata | {"author":"openspec","version":"1.0"} |
Run e2e tests using the test script in /root/emergent.memory.e2e/. All env vars,
server URLs, auth tokens, and API keys are wired via env overlay files —
no manual variable setup needed.
Quick Reference
bash .opencode/skills/run-e2e-test/scripts/run.sh
bash .opencode/skills/run-e2e-test/scripts/run.sh TestAINewsBlueprint_InstallAndRun
bash .opencode/skills/run-e2e-test/scripts/run.sh localhost TestCLIInstalled_Version
Available Test Names
| Test | What it covers |
|---|
TestAINewsBlueprint_InstallAndRun | Full AI news pipeline: install blueprint, run all skill agents, classifier, digest-writer. Verifies AIDigest + included_in relationships. ~3-5 min. |
TestCLIInstalled_* | CLI install and basic command tests |
TestProduction_* | Production smoke tests (skipped unless MEMORY_PROD_TEST_TOKEN is set) |
How It Works
The test script in /root/emergent.memory.e2e/test:
- Loads
.env as base config
- Merges the named env overlay (e.g.
.env.your-server) on top
- Shell-exported variables always win over file values
- Passes everything to
go test with -v
The run.sh wrapper:
- Defaults env to the value of
ENV_NAME (set in run.sh)
- Detects
TestAINews* / TestBlueprint* filters and adds -timeout 60m automatically
Env Overlays
| File | Target |
|---|
.env | Base defaults (Docker Compose stack) |
.env.your-server | Remote test server (auth + token pre-configured) |
.env.localhost | Local server at http://localhost:3012 |
Guardrails
- Do NOT manually export
MEMORY_TEST_SERVER, MEMORY_TEST_TOKEN, etc. — the overlay files handle this
- The AI news blueprint test creates and deletes ephemeral projects — it is safe to re-run at any time
- If a test SKIPs, check the skip message — it usually means a required env var or API key is missing
- Logs for each run are saved to
/root/emergent.memory.e2e/logs/<timestamp>-<TestName>/run.log