Skip to content

test: add tmux-based picker snapshot regression checks#35

Merged
neilberkman merged 2 commits intomainfrom
test/tui-snapshot-regression
Feb 15, 2026
Merged

test: add tmux-based picker snapshot regression checks#35
neilberkman merged 2 commits intomainfrom
test/tui-snapshot-regression

Conversation

@neilberkman
Copy link
Owner

Summary

  • add deterministic golden snapshot test for Bubble Tea picker rendering
  • add tmux capture-pane script to validate terminal-rendered snapshot against golden output
  • wire snapshot regression step into PR CI workflow

Details

  • New test file: cmd/clippy/picker_snapshot_test.go
    • TestPickerSnapshotGolden compares normalized picker view output to cmd/clippy/testdata/picker_snapshot.txt
    • TestPickerSnapshotPrint emits snapshot markers for tmux capture flow
  • New script: scripts/picker_snapshot_tmux.sh
    • runs snapshot print test in tmux
    • captures pane content
    • diffs against golden snapshot
  • PR workflow updates:
    • trigger on snapshot/script changes
    • run tmux snapshot regression step

Validation

  • go test ./cmd/clippy -run 'TestPickerModel|TestPickerSnapshotGolden' -count=1
  • ./scripts/picker_snapshot_tmux.sh

@neilberkman neilberkman merged commit fb38343 into main Feb 15, 2026
1 check passed
@neilberkman neilberkman deleted the test/tui-snapshot-regression branch February 15, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant