Environment based verification #1471
-
Hey, so we are trying to use Verify to ensure we generate images consistently, this is fine when running from Windows->Windows, Mac->Mac and Linux->Linux (other distros may vary though), but because of how fonts are rendered differently on these platforms, if we develop the software on macOS, and run the tests in GH Actions (and by extension, Linux) the font renders differently. From a software point of view, we're fine to take these differences in rendering. Is there a way I can specify whether I'm on macOS, in which case use I've done some reading around and can't find quite what I'm looking for, but I feel like it would be possible |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
https://github.com/VerifyTests/Verify/blob/main/docs/naming.md |
Beta Was this translation helpful? Give feedback.
-
but before trying os specifc files, i recomend trying image comparers to see if u can ignore small differences https://github.com/VerifyTests/Verify/blob/main/docs/comparer.md#pre-packaged-comparers |
Beta Was this translation helpful? Give feedback.
https://github.com/VerifyTests/Verify/blob/main/docs/naming.md