egui/crates/egui_kittest/src
Emil Ernerfeldt c7224aab26
Improve error message when kittest fails (#5427)
* Closes https://github.com/emilk/egui/issues/5423

New output is actionable

```
failures:

---- demo::demo_app_windows::tests::demos_should_match_snapshot stdout ----
thread 'demo::demo_app_windows::tests::demos_should_match_snapshot' panicked at crates/egui_demo_lib/src/demo/demo_app_windows.rs:433:9:
Errors: [
    "'demos/Code Example' Image size did not match snapshot. Expected: (402, 574), Actual: (415, 574).
     Run `UPDATE_SNAPSHOTS=1 cargo test` to update the snapshots.",
]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    demo::demo_app_windows::tests::demos_should_match_snapshot
```
2024-12-03 13:40:51 +01:00
..
app_kind.rs egui_kittest: Allow passing state to the app closure (#5313) 2024-11-06 14:43:41 +01:00
builder.rs Update accesskit to 0.17 (#5372) 2024-11-26 15:16:08 +01:00
event.rs Add egui testing library (#5166) 2024-10-22 12:39:00 +02:00
lib.rs Update accesskit to 0.17 (#5372) 2024-11-26 15:16:08 +01:00
snapshot.rs Improve error message when kittest fails (#5427) 2024-12-03 13:40:51 +01:00
texture_to_image.rs Add egui testing library (#5166) 2024-10-22 12:39:00 +02:00
wgpu.rs egui_kittest: Allow passing state to the app closure (#5313) 2024-11-06 14:43:41 +01:00