Visual regression checking with figma-first baselines, pixel+SSIM diffing, ignore regions, and HTML reports.
Project description
visualcheck
Visual regression checking with Figma-first baselines, pixel diff + SSIM, ignore regions, and a self-contained HTML report.
Install
pip install visualcheck
playwright install chromium
Quickstart
Create visualcheck.yaml:
project: consumer_website
suite: daily_sanity
envs:
qa: "https://qa.example.com"
prod: "https://www.example.com"
views:
desktop_profiles: ["desktop_1440x900"]
mobile_devices: ["iPhone 15 Pro Max", "iPhone 13 mini", "Pixel 7"]
pages:
- id: home
url: "/"
baseline:
priority: ["figma", "runtime"]
create_if_missing: true
never_overwrite: true
on_created: "INFO"
compare:
resize_on_mismatch: true
mismatch_level: "WARN"
thresholds:
max_pixel_diff_pct: 0.10
min_ssim: 0.995
ignore_regions:
global:
selectors: ["#cookie-banner", ".chat-widget"]
Run:
visualcheck run --env qa
Baseline rules (locked)
For each snapshot+view:
- If a Figma baseline exists: use it
- Else if a runtime baseline exists: use it
- Else: capture and create baseline (INFO:
BASELINE_CREATED)
Baselines live at repo root:
visual_baseline/<project>/<suite>/figma/...visual_baseline/<project>/<suite>/runtime/...
Run outputs go under:
test_report/<project>/visual_runs/<run_id>/...
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file visualcheck-0.1.0.tar.gz.
File metadata
- Download URL: visualcheck-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
542f07948fc40ef75e8fc888e6fef004f7d587b22d19fac0c3591a2f1f0d81ad
|
|
| MD5 |
13776f39848a8f2fcb3260e44821d78b
|
|
| BLAKE2b-256 |
5d6920c312f7d4068a5e7fe0b8d4eca83e57ffeb5c59449dd42b2a8e7513dfbb
|
File details
Details for the file visualcheck-0.1.0-py3-none-any.whl.
File metadata
- Download URL: visualcheck-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20cfa9d5b2e3478226c4bca5bd59462540e8386a8643dfcbe93d573a6f1e16d4
|
|
| MD5 |
813ade9d43ae0bc94bea100f3792a74c
|
|
| BLAKE2b-256 |
9697cbabb9ec124b5b05fa188f3d0328d830945dd38b71b6543d270da39ef543
|