Hi everyone, I want to share an experimental featu...
# compose-desktop
t
Hi everyone, I want to share an experimental feature in Roborazzi for Compose Desktop support. This library lets you create comparison images from screenshots and assert differences easily. You can run the Gradle tasks for Desktop Support, just like for Android Support. If you use the Kotlin JVM plugin, the task will be
recordRoborazziJvm
. Here's how to set it up: https://github.com/takahirom/roborazzi#experimental-feature-compose-desktop-support Since this is experimental, we'd appreciate your feedback. Let us know if you have any thoughts or run into issues. Thanks, and happy coding!
🎉 6
d
Hello, it looks like the
RoborazziRule
class is available only for android, there's no way to set an output directory for the desktop screenshot
t
@Dragos Rachieru Sorry for being late. Although it is an internal API. You can do it like this. I think it will work for now, so I'll address it further if I see that there's more demand. https://github.com/qdsfdhvh/compose-imageloader/blob/dbcee241aee38a1b4deda5802679b73ae2cb5148/image-loader/src/desktopTest/kotlin/com/seiko/imageloader/screenshot/ChangeImageUrlTest.kt#L22
🙏 1