Visual regression testing: update workflow #531
Replies: 4 comments 3 replies
-
One option to consider is Argos CI: https://github.com/argos-ci/argos |
Beta Was this translation helpful? Give feedback.
-
I've been playing with this a little bit: https://53319-158297197-gh.circle-artifacts.com/0/test/visual/review/index.html It's built from the current output of https://github.com/modernweb-dev/web/tree/master/packages/test-runner-visual-regression as used in one of the tests passes we make in CI for SWC |
Beta Was this translation helpful? Give feedback.
-
A workflow I currently use:
It works only if you can have CI on PR of course and in my workflow, the baseline screenshots are committed with the sources. |
Beta Was this translation helpful? Give feedback.
-
Coming from jest/jest-image-snapshot, in case of a mismatch, an image is written to disk that shows next to one another the original image, the new image, and a diff of the two. The file path gets output in the console, so it's very quick to open and visually check. If you then accept the new baseline, it clears up the relevant diff image. I find this workflow very productive and quick. Edit: Oh I see that a diff image is output. but it is not cleaned up once you update the baseline. |
Beta Was this translation helpful? Give feedback.
-
When two screenshots do not match, it would be great if there is some workflow for viewing and approving changes.
Are there any existing tools that handle this? Otherwise we could make something, it can be a simple HTML page which iterates through the images which are found on disk.
Beta Was this translation helpful? Give feedback.
All reactions