test(e2e): shared test harness for daemon lifecycle #154

Closed
opened 2026-04-27 05:38:08 +00:00 by xiaoju · 0 comments
Owner

Scope

Build a reusable test harness used by all e2e tests:

  • startTestDaemon(config) — creates temp HOME, writes nerve.yaml, spawns daemon, waits for IPC ready
  • stopTestDaemon(handle) — sends stop, waits for exit, cleans up temp dir
  • runCli(args) — runs CLI command against the test HOME, captures stdout/stderr/exitCode
  • Timeout guard — auto-kill daemon if test hangs
  • Minimal sense fixture (counter that increments a number)

This should be the first issue to implement — all other e2e tests depend on it.

Parent

Part of #153

## Scope Build a reusable test harness used by all e2e tests: - startTestDaemon(config) — creates temp HOME, writes nerve.yaml, spawns daemon, waits for IPC ready - stopTestDaemon(handle) — sends stop, waits for exit, cleans up temp dir - runCli(args) — runs CLI command against the test HOME, captures stdout/stderr/exitCode - Timeout guard — auto-kill daemon if test hangs - Minimal sense fixture (counter that increments a number) This should be the first issue to implement — all other e2e tests depend on it. ## Parent Part of #153
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#154