GoldenOptions

GoldenOptions configures screenshot comparison for fission-test-driver.
Use it when a visual output should remain stable across changes.
let report = client.compare_golden(
    "tests/goldens/home-desktop.png",
    Some(".artifacts/diffs/home-desktop.png"),
    GoldenOptions {
        channel_tolerance: 8,
        max_changed_percent: 0.2,
    },
)?;
assert!(report.changed_percent <= 0.2);
A golden report should include whether the comparison passed, summary diagnostics, changed-pixel counts, and paths to useful diff artifacts where supported.
Fission
A cross-platform, GPU-accelerated user interface framework for Rust. MIT licensed.
Copyright (c) 2026 Fission
Ready to use today. Widget APIs are expected to remain stable; some runtime and shell APIs may change before 1.0.0.
Fission 0.9.2