test: tie group evidence to passing tests and baseline restart on the as-built server (#36)
- tools/groups.mjs evidence entries now name the exact test, a minimum assertion count and the calls its body must keep; groups.test.mjs checks all three. - tools/evidence.mjs parses the spec reporter log and fails the gate unless every registered evidence test ran and passed; test.sh runs it after the Node suite. - restart.test.mjs snapshots the live as-built world on the first server, then compares it to the post-SIGTERM/SIGKILL state (players connect before the GM, so the GM's derived encountered grey is computed on both sides). - Negative controls: a hollowed auth test fails the new evidence check; a planted first-load drop of a token's gm prop bucket fails the new restart baseline while the old restart-to-restart test passed. - Refresh the gate evidence (control + 73 mutations incl. s1-s7, 142 node tests).
This commit is contained in:
+7
-2
@@ -602,8 +602,13 @@ from the prototype, what was missing, what the M3 build added, and the tools it
|
||||
|
||||
- **M3 accept result.** Measured 2026-11-20: `devbox run test` exit 0 (Nim suite all pass; 142 Node
|
||||
harness tests) and `devbox run mutation` exit 0 (control passes, all 73 mutations fail at least one
|
||||
expected test). The nine groups map to their proving tests in `tools/groups.mjs`;
|
||||
`tools/groups.test.mjs` fails if a group or its named evidence test disappears.
|
||||
expected test). The nine groups map to their proving tests in `tools/groups.mjs`. Evidence is
|
||||
executable, not a title substring (#36): `tools/groups.test.mjs` pins each test's exact title, a
|
||||
minimum assertion count and the calls its body must keep, and the last step of `devbox run test`
|
||||
(`tools/evidence.mjs`) parses the reporter output in `results/node-test.log` and fails unless every
|
||||
registered test ran and passed. The restart group takes its baseline from the as-built state on the
|
||||
first server instance, before any restart, not from a state that has already been through one
|
||||
(#36).
|
||||
- **M4 gate harness.** (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU
|
||||
and network throttle) against the real server path (nginx HTTP/2 + caching); (b) one manual run on
|
||||
the owner's 5-year-old Android phone. The 2026-11-08 prototype phone run is evidence, not the gate
|
||||
|
||||
Reference in New Issue
Block a user