Expand description
Headless test utilities for unit-testing TUI closures. Headless testing utilities.
TestBackend renders a UI closure to an in-memory buffer without a real
terminal. EventBuilder constructs event sequences for simulating user
input. Together they enable snapshot and assertion-based UI testing.
Structsยง
- Event
Builder - Builder for constructing a sequence of input
Events. - Frame
Record - Snapshot of a single rendered frame, captured by
TestBackend::record_frames. - Test
Backend - Headless rendering backend for tests.
- Test
Sequence - Builder returned by
TestBackend::sequence.