egui/crates/egui_demo_lib
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
..
benches Add `Context::request_discard` (#5059) 2024-09-13 14:20:51 +02:00
data Move all existing .png images to git LGS (#5320) 2024-10-29 10:04:07 +01:00
src Improve error message when kittest fails (#5427) 2024-12-03 13:40:51 +01:00
tests/snapshots Update snapshot for `Code Example` 2024-12-03 10:33:10 +01:00
Cargo.toml Add egui testing library (#5166) 2024-10-22 12:39:00 +02:00
README.md Move all crates into a `crates` directory (#1940) 2022-08-20 10:41:49 +02:00

README.md

egui demo library

Latest version Documentation unsafe forbidden MIT Apache

This crate contains example code for egui.

The demo library is a separate crate for three reasons: