https://kotlinlang.org logo
Title
o

Odin

03/14/2023, 10:36 AM
Hi everyone, does anyone know if there exists something like paparazzi or any other library for screenshot testing in compose desktop😊
Cc. @yschimke 😊
a

Alexander Maryanovsky

03/14/2023, 11:39 AM
There’s
ImageComposeScene
o

Odin

03/14/2023, 1:07 PM
Aha! Thank you! 🙂
o

orangy

03/14/2023, 2:29 PM
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

Landry Norris

03/14/2023, 3:35 PM
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

Odin

03/14/2023, 5:14 PM
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

Alexander Maryanovsky

03/14/2023, 5:17 PM
ImageComposeScene only gives you the screenshot. Then you do with it what you want.
o

Odin

03/14/2023, 5:18 PM
Aha okay! Thanks! 🙂