cypress-image-diff
cypress-visual-regression
cypress-image-diff | cypress-visual-regression | |
---|---|---|
2 | 2 | |
228 | 614 | |
1.3% | 0.8% | |
7.5 | 8.5 | |
13 days ago | 8 days ago | |
Handlebars | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cypress-image-diff
-
Visual Regression Testing with Cypress 10
One plugin which Cypress suggests is the cypress-plugin-snapshots, but if you wander into Cypress’ plugin “market” you can see that there are more. After checking a few, I have decided to go with the cypress-image-diff-js plugin because it’s free, has a relatively simple api, seems to have a good update activity and a fair amount of GitHub stars.
-
Understanding and implementing Cypress snapshot testing
The cypress-image-diff module provides the compareSnapshot() Cypress command which provides functionality similar to that of the above commands.
cypress-visual-regression
-
Show HN: Instantly create a GitHub repository to take screenshots of a web page
https://github.com/mojoaxel/awesome-regression-testing#tools...
"visual-regression": https://github.com/topics/visual-regression
Cypress.io can run in a CI job, does Time Travel, works with DevTools debugger, can take screenshots and video, and it looks like there's a visual regression testing thing for it: https://github.com/mjhea0/cypress-visual-regression
-
Understanding and implementing Cypress snapshot testing
The cypress-visual-regression module adds the compareSnapshot() Cypress command which takes a screenshot of the full screen or of a single HTML element.
What are some alternatives?
cypress-image-snapshot - Catch visual regressions in Cypress
pixelmatch - The smallest, simplest and fastest JavaScript pixel-level image comparison library
cypress-plugin-snapshots - Plugin for snapshot tests in Cypress.io
snapshot - Adds value / object / DOM element snapshot testing support to Cypress test runner
Enzyme - JavaScript Testing utilities for React
needle - Automated tests for your CSS.
image-diff - CLI tool for comparing images
cypress-react-app-actions - Access the internals of React components from Cypress end-to-end tests
puppeteer - Node.js API for Chrome
shot-scraper-template - Template repository for setting up shot-scraper