egui/crates/egui_kittest/src
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
..
app_kind.rs Fix some clippy issues found by 1.84.0 (#5603) 2025-01-13 08:29:13 +01:00
builder.rs `egui_kittest`: Add `HarnessBuilder::theme` (#7289) 2025-07-02 12:00:22 +02:00
lib.rs Allow masking widgets in kittest snapshots (#7467) 2025-08-21 17:46:36 +02:00
node.rs Add support for scrolling via accesskit / kittest (#7286) 2025-07-03 12:02:05 +02:00
renderer.rs Wgpu resources are no longer wrapped in `Arc` (since they are now `Clone`) (#5612) 2025-01-20 18:06:35 +01:00
snapshot.rs kittest: Add `UPDATE_SNAPSHOTS=force` (#7508) 2025-09-05 16:45:36 +02:00
texture_to_image.rs Update to wgpu 25 (#6744) 2025-05-10 13:16:49 +02:00
wgpu.rs Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00