I’m trying to create a simple compose test, but ru...
# compose
a
I’m trying to create a simple compose test, but run into the following error which fails my test, more in 🧵 :
Copy code
Failed resolution of: Lkotlin/time/AbstractLongTimeSource
The test couldn’t be any simpler:
Copy code
public class DashboardTest {

    @get:Rule
    public val composeTestRule: ComposeContentTestRule = createComposeRule()
    // use createAndroidComposeRule<YourActivity>() if you need access to an activity

    @Test
    public fun myTest() {
        // Start the app
        composeTestRule.setContent {
            Text("sample")
        }

        composeTestRule.onNodeWithText("sample").assertIsDisplayed()
    }
}
So I guess something in the setup is missing