Im trying to make a simple test with jetpack compose like this
@MediumTest
@RunWith(JUnit4::class)
class LoginScreenTest {
@get:Rule
val composeTestRule = createComposeRule()
@Test
fun test1() {
composeTestRule.setContent {
Text(text = "HEY")
}
composeTestRule.onNodeWithText("HEY").assertIsDisplayed()
}
}
But it is always displayed in android studio as canceled although it is succeeded 
Only the logcat can show if there is a failure or not
I/TestRunner: run finished: 1 tests, 0 failed, 0 ignored
So any idea how to fix this please? Any help will be appreciated
Compose version : 1.0.0-alpha11
Aucun commentaire:
Enregistrer un commentaire