:test_tube: How do I see the `println` or `Log` o...
# compose
t
🧪 How do I see the
println
or
Log
output in androidTest? Details in thread 🧵
Given the below test
Copy code
class 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.