egui/crates/egui_kittest/tests
Emil Ernerfeldt aedd43c88f
kittest: Add `UPDATE_SNAPSHOTS=force` (#7508)
This adds a new mode, `UPDATE_SNAPSHOTS=force`, which will lower the
threshold to zero, overwriting every image that is not _exactly_ the
same.

Most comparisons has a threshold because different GPUs render slightly
differently. However, setting that threshold accurately can be hard.

Sometimes a test will pass locally, but fail on CI. In those cases you
want to force an update of the failing test. You can use
`UPDATE_SNAPSHOTS=force` for that.

And sometimes a small change _should_ update all images, but the change
is so tiny that it falls under the threshold. Still, you want to make a
point of showing that these images have changes. You can use
`UPDATE_SNAPSHOTS=force` for that.
2025-09-05 16:45:36 +02:00
..
snapshots kittest: Add `UPDATE_SNAPSHOTS=force` (#7508) 2025-09-05 16:45:36 +02:00
accesskit.rs Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
menu.rs Enable and fix some more clippy lints (#7426) 2025-08-08 09:57:53 +02:00
popup.rs Create custom `egui_kittest::Node` (#7138) 2025-06-17 12:17:38 +02:00
regression_tests.rs Fix `override_text_color` priority (#7439) 2025-08-14 10:40:04 +02:00
tests.rs Allow masking widgets in kittest snapshots (#7467) 2025-08-21 17:46:36 +02:00