Test tools decision #9

Closed
opened 2026-11-10 16:48:42 +01:00 by SirStone · 1 comment
Owner

Part of #2

Question

Which language and runtime for the test harnesses, given the findings in #8?

  • Suggested default: decide once #8 is closed; keep it to one runtime for all harnesses.
Part of #2 ## Question Which language and runtime for the test harnesses, given the findings in #8? - Suggested default: decide once #8 is closed; keep it to one runtime for all harnesses.
SirStone added the wayfinder:grilling label 2026-11-10 16:48:42 +01:00
SirStone added a new dependency 2026-11-10 16:49:01 +01:00
SirStone added a new dependency 2026-11-10 16:49:01 +01:00
SirStone added a new dependency 2026-11-10 16:49:05 +01:00
SirStone self-assigned this 2026-11-14 18:43:59 +01:00
Author
Owner

Resolved (owner decision, 2026-11-14). Recorded in docs/DESIGN.md commit acc69c9 (sections 2, 10.4, 13 M3, 14).

  1. Black-box WS/HTTP harnesses: Node only. Port prototype-server-vision/tools/ .mjs harnesses (smoke, leak, restart, concurrency, lib) and keep them. No Nim rewrite.
  2. In-process tests stay Nim (nimble test), unchanged.
  3. Pin nodejs 26 in root devbox.json. Re-verify Node 26 global WebSocket {headers} (Cookie/Origin) with the first harness (#8 verified v24 only).
  4. Test runner: node:test, no npm deps.
  5. Malformed/raw-frame tests (oversize, bad opcode/rsv, unmasked, flood) use node:net.
  6. Layout: repo-root tools/ mirroring prototype names (smoke, leak, restart, concurrency, lib, withserver incl. M3 test nginx). Fix stale "Node 22" note in lib on port.
  7. devbox run test = Nim tests first, then Node harnesses.

Not decided here: browser e2e details (M4).

Resolved (owner decision, 2026-11-14). Recorded in `docs/DESIGN.md` commit `acc69c9` (sections 2, 10.4, 13 M3, 14). 1. Black-box WS/HTTP harnesses: Node only. Port `prototype-server-vision/tools/` `.mjs` harnesses (smoke, leak, restart, concurrency, lib) and keep them. No Nim rewrite. 2. In-process tests stay Nim (`nimble test`), unchanged. 3. Pin `nodejs` 26 in root `devbox.json`. Re-verify Node 26 global `WebSocket` `{headers}` (Cookie/Origin) with the first harness (#8 verified v24 only). 4. Test runner: `node:test`, no npm deps. 5. Malformed/raw-frame tests (oversize, bad opcode/rsv, unmasked, flood) use `node:net`. 6. Layout: repo-root `tools/` mirroring prototype names (smoke, leak, restart, concurrency, lib, withserver incl. M3 test nginx). Fix stale "Node 22" note in `lib` on port. 7. `devbox run test` = Nim tests first, then Node harnesses. Not decided here: browser e2e details (M4).
Sign in to join this conversation.