mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
0a50cbdf34
* test: add TUI PTY integration coverage * test: stabilize TUI PTY CI * test: speed up TUI PTY coverage * test: bound TUI PTY local waits * ci: keep TUI PTY gate fast * test: route TUI PTY project in full suite * ci: run TUI PTY on routing edits
887 B
887 B
TUI Notes
- Run
node scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.tsfor the fast fake-backend PTY lane. - Use
OPENCLAW_TUI_PTY_INCLUDE_LOCAL=1with that command for the slowertui --localsmoke test, which mocks only the external model endpoint. - The local PTY smoke runs
tui --localand mocks only the external model endpoint. The fake-backend lane runs the realrunTui()loop with a fakeTuiBackend. - Do not claim the fake-backend PTY harness proves Gateway transport, embedded backend runtime, providers, session persistence, or live streaming.
- Prefer stable visible text and fixture backend call assertions. Avoid raw ANSI snapshots.
- Use
pnpm tui:pty:test:watchto watch the fast fake-backend PTY test without mixing Vitest reporter output into the TUI screen. Use--mode localfor the local-backend smoke or--mode allfor both.