Skip to content

tests(vt): Exercise interactive picker lifecycle - #937

Open
tony wants to merge 2 commits into
feat-933-vtfrom
feat-933-vt-syrupy
Open

tony wants to merge 2 commits into
feat-933-vtfrom
feat-933-vt-syrupy

Conversation

@tony

@tony tony commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Exercise an interactive TUI picker lifecycle on tmux 3.3a to master via VtSessionObserver, KeyEvent, PasteEvent, window resizing, immutable wait_until() snapshots, and syrupy .ambr assertions.
  • Verify capture-versus-observer parity across Pane.capture_vt() and VtPaneHandle (including Mode.BRACKETED_PASTE on tmux >= 3.7 where #{bracket_paste_flag} is exposed, and live ?2004h retention on tmux 3.3a-3.6), plus primary-screen and cursor restoration on exit.
  • Add libvt[syrupy]>=0.0.1a6,<0.1 and syrupy to the dev and testing dependency groups on Python 3.12+.

Companion PR

Changes

  • pyproject.toml, uv.lock: add libvt[syrupy]>=0.0.1a6,<0.1 and syrupy to dev and testing dependency groups on Python 3.12+ and allowlist unresolved syrupy imports under [tool.ty.analysis] for Python 3.11 type-checks.
  • tests/test_vt.py, tests/__snapshots__/test_vt.ambr: add test_vt_interactive_picker_lifecycle covering pre-launch attach, Down highlight navigation, bracketed-paste filtering, capture-versus-observer parity, SIGWINCH window resize redraw, and primary-screen exit restoration (skipping cleanly on Python 3.11).

Test plan

  • Check formatting and lint rules with uv run ruff format . .github/scripts --check and uv run ruff check . .github/scripts
  • Check strict static types on Python 3.11 and Python 3.12+ with uv run ty check
  • Verify interactive TUI picker lifecycle, .ambr snapshots, and Python 3.11 skips with uv run pytest tests/test_vt.py --reruns=0

@tony
tony added this pull request to stack #938 November 29, 2026 16:23
@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.91%. Comparing base (a342546) to head (dd2f916).

Additional details and impacted files
@@               Coverage Diff               @@
##           feat-933-vt     #937      +/-   ##
===============================================
+ Coverage        62.84%   62.91%   +0.07%     
===============================================
  Files               30       30              
  Lines             5658     5658              
  Branches          1181     1181              
===============================================
+ Hits              3556     3560       +4     
+ Misses            1715     1711       -4     
  Partials           387      387              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tony
tony force-pushed the feat-933-vt-syrupy branch from 2e41979 to a58a953 Compare November 29, 2026 16:50
@tony tony changed the title vt(feat[syrupy]): Add snapshot aliases and tests tests(vt): Add syrupy .ambr parity tests Nov 29, 2026
@tony
tony force-pushed the feat-933-vt-syrupy branch from 4bcdded to 9e9233c Compare November 29, 2026 18:43
@tony
tony force-pushed the feat-933-vt-syrupy branch from 1fa922e to 7d549b9 Compare November 29, 2026 21:53
@tony
tony force-pushed the feat-933-vt-syrupy branch 2 times, most recently from 0488bc8 to 6e4d874 Compare November 29, 2026 23:49
@tony tony changed the title tests(vt): Add syrupy .ambr parity tests tests(vt): Exercise interactive picker lifecycle Nov 30, 2026
@tony
tony force-pushed the feat-933-vt-syrupy branch 2 times, most recently from e15361b to e249202 Compare November 30, 2026 00:53
@tony
tony force-pushed the feat-933-vt-syrupy branch from e249202 to a7063ad Compare November 30, 2026 01:18
@tony
tony force-pushed the feat-933-vt-syrupy branch from a7063ad to 6a2d032 Compare November 30, 2026 01:57
@tony
tony force-pushed the feat-933-vt-syrupy branch from 6259ba1 to 6a2d032 Compare December 4, 2026 01:23
@tony tony added the area: observation Waits, capture, snapshots, subscriptions label Dec 5, 2026
@tony tony added this to the 0.73.0 milestone Dec 5, 2026
@tony
tony force-pushed the feat-933-vt-syrupy branch from 6a2d032 to fc07716 Compare December 5, 2026 14:49
@tony
tony force-pushed the feat-933-vt-syrupy branch from c1c045b to aabffe3 Compare December 5, 2026 17:52
@tony
tony force-pushed the feat-933-vt-syrupy branch from c1c045b to 7eba8ba Compare December 5, 2026 18:41
tony added a commit that referenced this pull request Dec 5, 2026
why: Record interactive TUI picker syrupy snapshot tests.

what:
- Add unreleased 0.73.0 testing notes for #933 and #937.
@tony
tony force-pushed the feat-933-vt-syrupy branch from 7eba8ba to 9a4e2d4 Compare December 5, 2026 22:53
tony added 2 commits December 5, 2026 20:22
why: Verify that live VtSessionObserver tracking, mode-aware input,
window resizing, and syrupy .ambr snapshots cover an end-to-end TUI
lifecycle across tmux 3.3a through master while skipping cleanly on
Python 3.11.

what:
- Add libvt[syrupy]>=0.0.1a6,<0.1 and syrupy to dev and testing
  dependency groups on Python 3.12+ and allowlist syrupy in ty
- Add test_vt_interactive_picker_lifecycle exercising pre-launch
  attachment, Down highlight navigation, bracketed PasteEvent filtering,
  capture_vt vs observe_vt parity, SIGWINCH resize redraws, and
  primary-screen restoration on exit
why: Record interactive TUI picker syrupy snapshot tests.

what:
- Add unreleased 0.73.0 testing notes for #933 and #937.
@tony
tony force-pushed the feat-933-vt-syrupy branch from 9a4e2d4 to dd2f916 Compare December 6, 2026 02:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: observation Waits, capture, snapshots, subscriptions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant