Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2021 18:17
What would you like to do?
@ShowkaseScreenshot(rootShowkaseClass = ShowkaseRoot::class)
abstract class ComposeTests : ShowkaseScreenshotTest {
override fun onScreenshot(
id: String,
name: String,
group: String,
styleName: String?,
screenshotType: ShowkaseScreenshotType,
screenshotBitmap: Bitmap
) {
val view = ImageView(InstrumentationRegistry.getInstrumentation().context)
Screenshot.snap(view).setName("$group - $name").record()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment