1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Add Harness::debug_open_snapshot helper (#7590)

Adds a helper to quickly see whats going on in a kittest test.

Not all test have snapshots, but when debugging tests it might still be
useful to see whats actually going on, so this adds a helper fn that
renders a snapshot image to a temporary file and opens it with the
default image viewer:



https://github.com/user-attachments/assets/08785850-0a12-4572-b9b5-cea36951081c
This commit is contained in:
Lucas Meurer
2025-10-07 14:39:22 +02:00
committed by GitHub
parent ab461f4115
commit d83f4500a3
6 changed files with 97 additions and 11 deletions

View File

@@ -95,6 +95,7 @@ objc2 = "0.5.1"
objc2-app-kit = { version = "0.2.0", default-features = false }
objc2-foundation = { version = "0.2.0", default-features = false }
objc2-ui-kit = { version = "0.2.0", default-features = false }
open = "5"
parking_lot = "0.12"
percent-encoding = "2.1"
pollster = "0.4"
@@ -107,6 +108,7 @@ serde = { version = "1", features = ["derive"] }
similar-asserts = "1.4.2"
smallvec = "1"
static_assertions = "1.1.0"
tempfile = "3"
thiserror = "1.0.37"
type-map = "0.5.0"
unicode-segmentation = "1.12.0"
@@ -114,7 +116,7 @@ wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = "0.3.73"
web-time = "1.1.0" # Timekeeping for native and web
wgpu = { version = "27.0.0", default-features = false }
wgpu = { version = "27.0.0", default-features = false, features = ["std"] }
windows-sys = "0.60"
winit = { version = "0.30.12", default-features = false }