Visual testing
johansatge opened this issue · comments
As seen in #11, the existing tests are not enough.
Let's try to introduce visual testing, to make sure the resulting image has been rotated/flipped correctly.
Possible workflow:
- After rotating the test images, write them on disk
- Capture the original image with an EXIF-friendly tool (by taking a screenshot with Chrome + puppeteer, for instance?)
- Run a visual comparison between the two images (with pixelmatch for instance)
Done in #14.