reg-suit compares current UI images to stored snapshots, writes HTML difference reports, and syncs images via plugins.
Overview
reg-suit is a command-line tool for visual regression testing inspired by snapshot testing. You supply images to check; the tool compares the current set against previously stored snapshots and generates an HTML report showing differences.
Snapshot images can be published to external cloud storage such as AWS S3 or Google Cloud Storage through publisher plugins, so teams can review comparison results and diffs later. The workflow fits local machines and CI services because the interface is a CLI rather than a dedicated server product.
A plugin system adds key generation, publishing, and notifications. Key-generator plugins decide which snapshot baseline to use, including git-hash-based identification for GitHub-style branching. Publisher plugins fetch expected images before compare and upload actual images and reports afterward. Notifier plugins can post results to GitLab merge requests, GitHub Enterprise pull requests, or Slack.
Core commands include run (sync, compare, publish, and notify), sync-expected, compare, publish, init, and prepare. Configuration lives in regconfig.json with paths to actual images, optional pixel and color thresholds, antialias handling, and parallel compare concurrency. Optional x-img-diff integration adds structural diff detail in the browser when enabled.
Teams typically capture screenshots in their UI tests, point reg-suit at an actual directory, and wire S3 or GCS plus CI branch metadata so each topic branch compares against the correct parent commit baseline.
Key features
- Pixel-based image snapshot comparison
- HTML reports for visual differences
- S3 and GCS snapshot publishing plugins
- Git commit hash baseline key generation
- Slack and Git hosting notifier plugins
- Configurable pixel and color thresholds
- Optional structural diff via x-img-diff
- CI-friendly run, compare, and publish commands
Use cases
- Visual regression checks in CI pipelines
- Screenshot tests for web UI projects
- Storing baselines in S3 or GCS
- Pull request comments with diff results
- Local snapshot compare before merge
Does the same job as
reg-suit doesn't name these products itself, but its own description shows it does the same job.