Skip to main content

Crate testty

Crate testty 

Source
Expand description

Rust-native TUI end-to-end testing framework.

Drives a real TUI binary in a PTY, captures location-aware terminal state with vt100, generates VHS tapes for visual screenshots, and provides an assertion API for text, style, color, and region checks.

Modulesยง

artifact
Artifact storage for test captures and failure diagnostics.
assertion
Matcher APIs for terminal frame assertions.
calibration
Screenshot geometry calibration for mapping terminal cells to pixels.
diff
Frame diffing engine for comparing terminal states.
feature
Generic feature demo builder: scenario execution with GIF generation.
frame
Terminal frame capture and cell inspection.
journey
Composable journey building blocks for declarative test authoring.
locator
Text locators for finding and describing UI elements in the terminal grid.
overlay
Screenshot overlay rendering for visual failure reporting.
proof
Proof pipeline for generating self-documenting test output.
recipe
Agent-friendly recipe helpers for common TUI assertions.
region
Terminal region definitions for location-aware assertions.
renderer
Native frame renderer producing pixel-accurate terminal images.
scenario
Scenario builder for composing test scenarios from steps.
session
PTY session for driving a real TUI binary.
snapshot
Paired snapshot workflow for baseline management and failure artifacts.
step
Scenario step definitions for TUI test automation.
vhs
VHS tape compiler for generating visual screenshot tapes from scenarios.