Skip to content

tests(vt): Verify captured paste state - #947

Draft
tony wants to merge 2 commits into
feat-933-vt-syrupyfrom
experiment/libvt-capture-metadata
Draft

tony wants to merge 2 commits into
feat-933-vt-syrupyfrom
experiment/libvt-capture-metadata

Conversation

@tony

@tony tony commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Compare the picker's live and captured rows, cursor state, and reported terminal modes.
  • Check that a missing bracketed-paste flag is reported as None. Check enabled and disabled states on servers that expose the flag.
  • Keep process ID scrubbing at the Syrupy golden boundary.
  • Document one-shot capture paste metadata on older and newer tmux servers against libvt>=0.0.1a6,<0.1 (libvt #170).

Companion PR

Builds on the interactive picker lifecycle. libtmux #937.

Test plan

  • Run the VT integration tests and doctests with tmux 3.3a through 3.8.
  • Verify the new assertion fails when paste metadata is omitted on tmux 3.3a.
  • Check Ruff formatting and lint, ty for Python 3.11 and 3.15, and the Sphinx build.
  • Run the tests on Python 3.11 to verify the optional VT tests skip.
  • Build the wheel and check the Python marker on the optional VT dependency.

@codecov

codecov Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.83%. Comparing base (c1c045b) to head (fb7be39).

Additional details and impacted files
@@                  Coverage Diff                   @@
##           feat-933-vt-syrupy     #947      +/-   ##
======================================================
- Coverage               62.88%   62.83%   -0.06%     
======================================================
  Files                      30       30              
  Lines                    5653     5653              
  Branches                 1180     1180              
======================================================
- Hits                     3555     3552       -3     
- Misses                   1710     1713       +3     
  Partials                  388      388              

☔ 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 experiment/libvt-capture-metadata branch from 426f120 to fb7be39 Compare December 5, 2026 16:41
@tony
tony force-pushed the feat-933-vt-syrupy branch 2 times, most recently from c1c045b to 7eba8ba Compare December 5, 2026 18:41
@tony
tony force-pushed the experiment/libvt-capture-metadata branch from fb7be39 to f947716 Compare December 5, 2026 18:41
@tony
tony force-pushed the feat-933-vt-syrupy branch from 7eba8ba to 9a4e2d4 Compare December 5, 2026 22:53
tony added a commit that referenced this pull request Dec 5, 2026
why: Record tmux capture-metadata forwarding in libtmux[vt].

what:
- Add unreleased 0.73.0 feature notes for #947.
@tony
tony force-pushed the experiment/libvt-capture-metadata branch from f947716 to 57fe099 Compare December 5, 2026 22:53
tony added 2 commits December 5, 2026 20:23
why: Older tmux servers omit the one-shot paste flag while a live
observer can see the mode after attach.

what:
- Assert reported and unavailable paste metadata during picker use
  and after exit
- Compare viewport rows, cursor state, and modes exposed by capture
- Keep process ID scrubbing at the Syrupy snapshot boundary and
  document the capture metadata
why: Record tmux capture-metadata forwarding in libtmux[vt].

what:
- Add unreleased 0.73.0 feature notes for #947.
@tony
tony force-pushed the feat-933-vt-syrupy branch from 9a4e2d4 to dd2f916 Compare December 6, 2026 02:23
@tony
tony force-pushed the experiment/libvt-capture-metadata branch from 57fe099 to 57d6169 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