Skip to content

Comments

feat(tui): add comprehensive test automation infrastructure#555

Merged
bug-ops merged 3 commits intomainfrom
feature/tui-testing
Feb 18, 2026
Merged

feat(tui): add comprehensive test automation infrastructure#555
bug-ops merged 3 commits intomainfrom
feature/tui-testing

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 18, 2026

Summary

  • Extract EventSource trait from EventReader for testable event injection with MockEventSource
  • Add test_utils module with TestBackend helpers (test_terminal, render_to_string)
  • Add 9 insta snapshot tests covering all TUI widgets (splash, input, confirm, help, status, skills, memory, resources)
  • Add 8 integration tests combining state transitions with render verification
  • Add 3 E2E PTY tests via expectrl (#[ignore], requires built binary)
  • Add 2 proptest property tests for AppLayout::compute and centered_rect (1000 cases each)
  • Add snapshots CI job enforcing cargo insta test --check

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace -- -D warnings passes
  • cargo nextest run --workspace --lib --bins — 1644/1644 pass
  • All snapshot files committed and reviewed
  • CI pipeline passes with new snapshots job

Closes #542, closes #543, closes #544, closes #545, closes #546, closes #547, closes #548

@github-actions github-actions bot added enhancement New feature or request rust dependencies ci size/XL and removed enhancement New feature or request labels Feb 18, 2026
Add EventSource trait abstraction, TestBackend widget snapshot tests
with insta, integration tests combining state transitions with render
verification, E2E PTY tests via expectrl, property-based layout tests
with proptest, and CI snapshot regression pipeline.

Closes #543, closes #544, closes #545, closes #546, closes #547, closes #548
@bug-ops bug-ops force-pushed the feature/tui-testing branch from 025feea to 8b4d27c Compare February 18, 2026 18:24
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 18, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 18, 2026 18:36
@bug-ops bug-ops merged commit 7fbe758 into main Feb 18, 2026
20 checks passed
@bug-ops bug-ops deleted the feature/tui-testing branch February 18, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment