Тестирование CLI и TUI-приложений в терминале
testing
terminal-emulator is a Claude Code skill that automates testing of interactive CLI and TUI applications using @microsoft/tui-test, an open-source library from Microsoft. It provides a Playwright-like API for the terminal, spinning up a real PTY per test — no mocking — so you can assert on arrow-key navigation, text input, Escape, Tab, Ctrl+C, and full terminal snapshots via toMatchSnapshot(). The skill is aimed at developers who need to test CLI tools with interactive prompts, TUI rendering, or any command that requires a TTY. Tests run with npx tui-test, support snapshot updates and single-file runs, and work cross-platform on macOS, Linux, and Windows. The library is used by the VS Code terminal team.
- #cli-testing
- #tui-testing
- #terminal
- #automation
- #playwright