From 528a66cc720b25252a497adeb358e729dc8f3a62 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 21:29:23 -0300 Subject: test: the window's own tests in Zig (T4, test/process/window.zig), gui_monkey.py and gui_golden.py gone: the monkey drives the hidden window's own input (Detached.typeKeys into its pty, Detached.mouse's OSC 777 events) with clicks, drags, wheels, hovers and keys, and columns, looks, Joincol, Collapse, Delcol and themes over 9P, then the window must settle, alive, with no crash record (two combinations of 30 steps in process-test, all 40 Motion x Lift x Bloom with zig build monkey-gui -Dplatform=gui); the goldens hash the 17 scenes' frames (Detached.capture, a transition's frame 6 too) against test/gui-goldens.txt, regenerated for the offscreen window and twice reproduced, run when asked (zig build gui-golden -Dplatform=gui, PARDES_GUI_GOLDEN=update); Detached's init file, settle and capture; no Python step left in the build Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/next-tests.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'docs/next-tests.md') diff --git a/docs/next-tests.md b/docs/next-tests.md index a16a7cf9..b05e9352 100644 --- a/docs/next-tests.md +++ b/docs/next-tests.md @@ -48,7 +48,8 @@ agent's survey. The `e2e` line (kbdin, mousein) is its first step. new_pane, execute). - **agent_session_test.py is kept,** run by hand: it tests the agent_session.py tool. - - **Still Python in the build:** gui_monkey.py (monkey-gui, for T4). + - **No Python left in the build:** gui_monkey.py and gui_golden.py are + test/process/window.zig's two cases (T4, below). Each backend's own (2026-11-04, the user: an effect's test is the backend's): @@ -108,7 +109,13 @@ agent's survey. The `e2e` line (kbdin, mousein) is its first step. The window (T4): its core is the one T1 drives, so a behaviour the cells show is tested at T1; T4 is for what only pixels show (scene effects, -images, fonts, edges). test/gui_golden.py's 17 frame hashes +images, fonts, edges). Built (2026-11-04): test/process/window.zig's +monkey (a smoke run in process-test, all 40 Motion x Lift x Bloom with +`zig build monkey-gui -Dplatform=gui`) drives the window's own input +(Detached.typeKeys and mouse: its pty and OSC 777) and checks it settles, +alive, with no crash record; its goldens (`zig build gui-golden +-Dplatform=gui`, PARDES_GUI_GOLDEN=update to rewrite) hash 17 scenes' +frames from Detached.capture. The old notes: test/gui_golden.py's 17 frame hashes (test/gui-goldens.txt) are an exact gate for one machine, never a CI one, and move to the Zig runner with T2. gui.zig's own tests: 19 M, 17 B, 47 U. -- cgit v1.3