Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Visual Regression Testing
  3. reg-cli

reg-cli

MITRust0.19.0-rc0

A command-line tool for visual regression testing with an HTML reporter.

Visit WebsiteGitHubGitHub
411 stars32 forks0 contributors

What is reg-cli?

reg-cli is a command-line visual regression testing tool that compares screenshots to detect visual changes in applications. It helps developers catch unintended UI modifications by generating diff images and detailed HTML reports. The tool is designed for integration into CI/CD pipelines and local development workflows.

Target Audience

Frontend developers, QA engineers, and teams implementing visual testing in their CI/CD processes to ensure UI consistency across releases.

Value Proposition

Developers choose reg-cli for its lightweight CLI interface, configurable comparison thresholds, and interactive HTML reports that make it easy to identify and review visual differences without complex setups.

Overview

📷 Visual regression test tool.

Use Cases

Best For

  • Automating visual regression tests in CI/CD pipelines
  • Comparing UI screenshots across different browser versions
  • Detecting unintended visual changes in web applications
  • Generating interactive HTML reports for visual test results
  • Integrating visual testing into Node.js-based projects
  • Updating baseline screenshots efficiently after UI updates

Not Ideal For

  • Teams needing integrated screenshot capture without additional tools like Puppeteer or Selenium
  • Projects requiring cloud-based visual testing with built-in collaboration and cross-browser automation
  • Applications with highly dynamic content where pixel-perfect comparisons lead to frequent false positives

Pros & Cons

Pros

Interactive HTML Reports

Generates detailed, visual reports that allow easy inspection of differences, as demonstrated in the documentation with screenshots of open, close, and viewer modes, enhancing debugging efficiency.

Fine-Grained Comparison Control

Offers configurable thresholds for pixel matching, rate, and pixel count (via options like -M, -T, -S), enabling users to adjust sensitivity and reduce false positives in visual tests.

Parallel Processing for Speed

Uses concurrency to launch multiple processes in parallel (default is 4, adjustable with -C), speeding up image comparisons and making it efficient for large test suites.

Easy Baseline Management

Includes an update mode (-U) to copy actual images to the expected directory, simplifying the process of updating baseline screenshots after intentional UI changes.

Cons

No Built-in Screenshot Capture

reg-cli only compares images; capturing screenshots requires integration with external tools like Puppeteer or Selenium, adding complexity and setup overhead to the testing workflow.

Experimental Features Unstable

Some options, such as additionalDetection (-X), are labeled as 'highly experimental' in the README, which could lead to unreliable results or require frequent adjustments as the feature evolves.

CLI-Only Interface

Lacks a graphical user interface or API, limiting its appeal for teams that prefer visual workflows or need programmatic integration beyond command-line usage, such as in some CI/CD systems.

Frequently Asked Questions

Quick Stats

Stars411
Forks32
Contributors0
Open Issues16
Last commit1 day ago
CreatedSince 2016

Tags

#visual-regression-testing#screenshot-comparison#frontend-testing#cli-tool#visual-tests#ci-cd#nodejs#testing-automation#visual-recognition

Built With

N
Node.js

Links & Resources

Website

Included in

Visual Regression Testing2.4k
Auto-fetched 1 day ago

Related Projects

PlaywrightPlaywright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

Stars91,918
Forks6,002
Last commit1 day ago
NightwatchNightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack

Stars11,948
Forks1,398
Last commit1 month ago
TestCafeTestCafe

A Node.js tool to automate end-to-end web testing.

Stars9,907
Forks678
Last commit7 days ago
ProtractorProtractor

E2E test framework for Angular apps

Stars8,671
Forks2,257
Last commit3 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub