https://kotlinlang.org logo
#compose
Title
# compose
a

aniruddha dhamal

03/11/2022, 3:30 AM
Hi, Code coverage with composable functions seem to be off using Jacoco. Any idea? Details in 🧵
I have simple greeting composable
Copy code
@Composable
fun greeting() {
    Text(text = "Hello there!")
}

@Test
fun testGreeting() {
    composeTestRule.setContent {
        greeting()
    }
    composeTestRule
        .onNodeWithText("Hello there!")
        .assertIsDisplayed()
}
m

Michael Torres

03/11/2022, 4:18 AM
Here is a Jacoco issue for this https://github.com/jacoco/jacoco/issues/1208
a

aniruddha dhamal

03/11/2022, 5:05 PM
Thanks for the link! @Michael Torres
10 Views