theapache64
09/16/2021, 4:34 PMprintln
or Log
output in androidTest? Details in thread 🧵theapache64
09/16/2021, 4:35 PMclass ComposeTest{
@get:Rule
val composeRule = createComposeRule()
@Before
fun beforeAll() {
composeRule.setContent {
Button(onClick = { println("Button 2 clicked") }) {
Text(text = "Button2")
}
}
}
@Test
fun test(){
composeRule.onNodeWithText("Button2").assertIsDisplayed()
}
}
where do I see the Button 2 clicked
output?
I’ve looked at both Logcat output and test result console.