Hi everyone, does anyone know if there exists some...
# compose-desktop
o
Hi everyone, does anyone know if there exists something like paparazzi or any other library for screenshot testing in compose desktop😊
Cc. @yschimke 😊
a
There’s
ImageComposeScene
o
Aha! Thank you! 🙂
o
Be aware, last time we discussed it with @Igor Demin there was an issue with font rendering on different platforms – results are not pixel-identical. So if you develop on a macOS and run tests on Linux, tests will fail, unless you’re using some fuzzy image matching
l
I think the real question is whether we’ll see a paparazzi version that supports more than just Android built on ImageComposeScene. Paparazzi already has the ability to specify percentage of non-matching pixels.
o
Thank you! That is great input! I’ll keep that in mind @orangy 🙂 Is it not possible to define a non-matching pixel percentage with ImageComposeScene?
a
ImageComposeScene only gives you the screenshot. Then you do with it what you want.
o
Aha okay! Thanks! 🙂