-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Additional options for updating images #204
Comments
Hey! I think Regarding |
Hey, no problem! I have been delayed in replying too 😂 Thank you for creating the PR for Your other suggestion sounds good, I'm working on a PR for that, will let you know when it's open. |
Perfect! Keep me updated about your PR! Both of these changes are non-breaking, so they can be released quite quickly - I'll try to release |
update tests simplify task.hook code relates #204
# [3.3.0](v3.2.15...v3.3.0) (2023-05-21) ### Bug Fixes * **deps:** update dependency pngjs to v7 ([#215](#215)) ([af71297](af71297)) ### Features * createMissingImages option ([#222](#222)) ([2aef358](2aef358)), closes [#204](#204) * separate versioning for images ([#221](#221)) ([b2a7434](b2a7434)), closes [#197](#197)
Okay, |
Is your feature request related to a problem? Please describe.
To avoid issues causes by Windows/Linux rendering, we capture all our screenshots in a separate CI job using the
updateImages
option. But this has two limitations:updateImages
Describe the solution you'd like
Two news options:
createMissingImages
- defaults to true. When false causes compariosn to fail if no 'old' image is foundupdateImagesOnFailure
- update images only when comparison failsDescribe alternatives you've considered
I tried implementing
updateImagesOnFailure
outside the library by catching test failures then updating images, but it's a bit cumbersome and does not handle missing images how I would like.Please could you let me know your thoughts on this?
The text was updated successfully, but these errors were encountered: