Skip to content

Commit bc3a488

Browse files
wthollidayclaude
andcommitted
Add headless test harness for simulated input sequences
TestHarness provides a builder-style API for scripting UI interactions without a GPU: tap, drag, key, type_text, set_key_mods. It manages layout, event processing, and state access in view-local coordinates. 13 tests covering: repeated taps, toggle, knob drag, two-view hstack tap targeting, drag gesture state sequence, tap miss detection, key events, type_text helper, keyboard modifiers, vertical list item selection, cond state toggling, and tap action types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 59f6fc1 commit bc3a488

2 files changed

Lines changed: 472 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ mod snapshot_tests;
6464
#[cfg(test)]
6565
mod screenshot_tests;
6666

67+
#[cfg(test)]
68+
mod test_harness;
69+
6770
#[cfg(test)]
6871
mod tests {
6972

0 commit comments

Comments
 (0)