I'm playing around with screenshot testing. So I c...
# compose
z
I'm playing around with screenshot testing. So I checked the implementation of TextFieldScreenshotTest (part of Jetpack Compose) and there you are using
AndroidXScreenshotTestRule
. But I can't seem to find the appropriate dependency to add to my project so that I can use
AndroidXScreenshotTestRule
. I looked into Google's Maven repo for
androidx.test
group and I also have added these dependencies to my project: •
androidx.test:core-ktx
androidx.test:runner
androidx.test:rules
androidx.test.ext:junit-ktx
But none of them seems to contain the desired
AndroidXScreenshotTestRule
. What am I missing?
c
I think
AndroidXScreenshotTestRule
is experimental and it's not officially supported.
At least that's what I feel like @ppvi mentioned in his video from a few months ago.
z
Hmm but if we have a documentation about it, it should be available ..somewhere 🙂
l
Sorry for the confusion! These docs were mistakenly published - these screenshot testing utils are internal and not published.
👍 2
s
hi guys, I am also dealing with screenshot testing is there any good way to generate bitmap from composables without an activity?
c
Try paparazzi from square/cashapp. the snapshot version contains compose support.
s
have you used paparazzi for compose?
c
nope