Expand description
Visual regression testing — compare screenshots against baselines.
Decodes PNG images, computes per-pixel RGBA diffs, and generates diff
images highlighting changes. Baselines are stored in a snapshots/
directory alongside test files.
Structs§
- Mask
Region - A rectangular region to exclude from pixel comparison.
- Visual
Diff - Result of comparing two screenshots pixel-by-pixel.
- Visual
Options - Options for visual regression comparison.
Enums§
- Threshold
Preset - Named threshold presets for common use cases.
Functions§
- compare_
screenshot - Compares a screenshot (base64 PNG) against a stored baseline.