Skip to content

Instantly share code, notes, and snippets.

@andersu
Created January 30, 2022 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersu/947f5a7286b0f3c685b363ae318f10e0 to your computer and use it in GitHub Desktop.
Save andersu/947f5a7286b0f3c685b363ae318f10e0 to your computer and use it in GitHub Desktop.
@get:org.junit.Rule
val composeRule = androidx.compose.ui.test.junit4.createComposeRule()
@org.junit.Test
fun testContent() {
composeRule.setContent { $PREVIEW_NAME$() }
compareScreenshot(composeRule)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment