2.5 KiB
2.5 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1177d1f5-6df7-42ae-beef-bbd6b22d2fae | workflow | Workflow: TUI testing with mcp-tui-driver in Claude Code |
|
0.6 | 0.8 | 2026-03-02T00:38:21.757641+00:00 | 2026-03-02T00:38:40.739932+00:00 |
|
TUI Testing Workflow with mcp-tui-driver
Context
Documentation added to development/tui-testing.md in the claude-home repo. Context loading trigger added to CLAUDE.md.
Context Loading Trigger
Keywords: tui testing, mcp-tui-driver, tui automation, terminal ui test
Loads: development/tui-testing.md
Typical Testing Workflow
- Launch —
tui_launchto start the TUI app in a managed session - Wait —
tui_wait_for_idleortui_wait_for_textuntil app is ready - Inspect —
tui_snapshot(accessibility tree) ortui_text(raw text) to read state - Interact —
tui_press_key,tui_send_text,tui_clickto drive the UI - Assert —
tui_screenshotfor visual verification or checktui_textoutput - Cleanup —
tui_closeto terminate the session
Key Concepts
- Accessibility snapshots — structured element tree with references, preferred over raw text matching
- Multi-session — can run multiple TUI apps simultaneously for integration tests
- Asciicast recording — can record sessions for replay/debugging
- JS scripting —
tui_run_codefor complex programmatic interactions
File Location
/mnt/NV2/Development/claude-home/development/tui-testing.md