Snapshot tests, native only. Also verified by execution:
image snapshots do not work in the browser. egui_kittest removes
Backends::BROWSER_WEBGPU because its readback path uses blocking
pollster::block_on, so adapter creation fails in-page. Run snapshots on
one platform — lavapipe software rasteriser on Linux, which is
deterministic across runners — store the PNGs in git LFS, call
remove_cursor() and fit_contents() before each, and batch with
SnapshotResults so one run reports every failure rather than the first.
Keep the image count small; prefer plain assertions to pixels.
Source: TODO.md line 2968 — Interface › Testing the interface
Snapshot tests, native only. Also verified by execution:
image snapshots do not work in the browser.
egui_kittestremovesBackends::BROWSER_WEBGPUbecause its readback path uses blockingpollster::block_on, so adapter creation fails in-page. Run snapshots onone platform — lavapipe software rasteriser on Linux, which is
deterministic across runners — store the PNGs in git LFS, call
remove_cursor()andfit_contents()before each, and batch withSnapshotResultsso one run reports every failure rather than the first.Keep the image count small; prefer plain assertions to pixels.
Source:
TODO.mdline 2968 — Interface › Testing the interface