Skip to content

Conversation

@lucasmerlin
Copy link
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

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
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
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

3 participants