Skip to content

Enforce consistent snapshot updates#7744

Merged
lucasmerlin merged 3 commits intomainfrom
lucas/enforce-consistent-snapshot-updates
Nov 26, 2025
Merged

Enforce consistent snapshot updates#7744
lucasmerlin merged 3 commits intomainfrom
lucas/enforce-consistent-snapshot-updates

Conversation

@lucasmerlin
Copy link
Copy Markdown
Collaborator

This collects SnapshotResults within the Harness and adds a check to enforce snapshot results are merged in case multiple Harnesses are constructed within a test.

This should make snapshot updates via kitdiff/accept_snapshots.sh way more useful since it should now always update all snapshots instead of only the first one per test.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 26, 2025

Preview available at https://egui-pr-preview.github.io/pr/7744-lucasenforce-consistent-snapshot-updates
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@lucasmerlin lucasmerlin added feature New feature or request egui_kittest labels Nov 26, 2025
Copy link
Copy Markdown
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@lucasmerlin lucasmerlin merged commit de90761 into main Nov 26, 2025
46 of 47 checks passed
@lucasmerlin lucasmerlin deleted the lucas/enforce-consistent-snapshot-updates branch November 26, 2025 13:56
emilk pushed a commit that referenced this pull request Dec 11, 2025
* Closes #7647


This collects SnapshotResults within the Harness and adds a check to
enforce snapshot results are merged in case multiple Harnesses are
constructed within a test.

This should make snapshot updates via kitdiff/accept_snapshots.sh way
more useful since it should now always update all snapshots instead of
only the first one per test.
@emilk emilk mentioned this pull request Dec 11, 2025
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
* Closes emilk#7647


This collects SnapshotResults within the Harness and adds a check to
enforce snapshot results are merged in case multiple Harnesses are
constructed within a test.

This should make snapshot updates via kitdiff/accept_snapshots.sh way
more useful since it should now always update all snapshots instead of
only the first one per test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

egui_kittest feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collect snapshot results in kittest harness

2 participants