Skip to content

Instantly share code, notes, and snippets.

@sebaslogen
Last active December 24, 2023 10:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sebaslogen/0bc16a61c5df16c4164dd9ea49781a4d to your computer and use it in GitHub Desktop.
@RunWith(AndroidJUnit4::class) // Update: back in 2022, this used to be @RunWith(RobolectricTestRunner::class)
class MyTests {
@get:Rule val composeTestRule = createComposeRule()
@Test fun `when I test, then it works`() {
// Some test code here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment