Skip to content

Image Diff for snapshot testing

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

linebender/kompari

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7ed02ee · Mar 8, 2025

History

31 Commits
Mar 6, 2025
Nov 27, 2024
Mar 8, 2025
Mar 8, 2025
Mar 6, 2025
Mar 8, 2025
Mar 8, 2025
Jan 30, 2025
Dec 7, 2024
Feb 12, 2025
Dec 6, 2024
Jan 26, 2025
Mar 8, 2025
Mar 6, 2025
Dec 6, 2024
Dec 6, 2024
Mar 8, 2025

Repository files navigation

Kompari

Kompari is a tool for reporting image differences. It is intended for use in snapshot testing. It can be used as a stand-alone CLI tool or as a Rust crate.

CLI

Installation

Basic installation, PNG format only

$ cargo install kompari --features=cli

OR with all supported formats

$ cargo install kompari --features=cli

Usage

Create static HTML report:

$ kompari report <left/image_dir> <right/image_dir>

Start HTTP server for interactive test blessing:

$ kompari review <left/image_dir> <right/image_dir>

Minimum supported Rust Version (MSRV)

This version of Kompari has been verified to compile with Rust 1.78 and later.

Future versions of Kompari might increase the Rust version requirement. It will not be treated as a breaking change and as such can even happen with small patch releases.

Click here if compiling fails.

As time has passed, some of Kompari's dependencies could have released versions with a higher Rust requirement. If you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency.

# Use the problematic dependency's name and version
cargo update -p package_name --precise 0.1.1

License

Licensed under either of

at your option.