ShotSweep enables precise visual regression testing straight from the command line. By capturing and comparing website snapshots before and after changes, it ensures that visual discrepancies are detected early. This tool supports a variety of input formats and authentication methods, helping maintain consistency in web applications.
ShotSweep is a command-line tool designed for effective visual regression testing, empowering developers to ensure their web applications retain visual fidelity across changes and deployments. By capturing real pages using a browser, ShotSweep provides a straightforward and repeatable method for comparing page appearances between different runs, effectively identifying visual discrepancies that other tests may overlook.
shotsweep capture --url https://example.com --mode full
shotsweep capture --sitemap https://example.com/sitemap.xml --out ./screenshots
Perform a capture before and after changes, then initiate a diff:
shotsweep capture --sitemap https://example.com/sitemap.xml --out ./before
# make your changes
shotsweep capture --sitemap https://example.com/sitemap.xml --out ./after
shotsweep diff ./before/manifest.json ./after/manifest.json --out ./diff
This tool addresses the critical challenge that traditional testing frameworks often miss: ensuring a web application looks the way it is intended to across all its iterations.
No comments yet.
Sign in to be the first to comment.