Vaios Tsitsonis
07/11/2022, 8:40 AMNo compose hierarchies found in the app. Possible reasons include: (1) the Activity that calls setContent did not launch; (2) setContent was not called; (3) setContent was called before the ComposeTestRule ran. If setContent is called by the Activity, make sure the Activity is launched after the ComposeTestRule runs
With the term randomly, I mean different tests every time.
I have defined my rules like that:
@get:Rule(order = 0)
var hiltRule = HiltAndroidRule(this)
@get:Rule(order = 1)
val composeTestRule = createEmptyComposeRule()
@get:Rule(order = 2)
val activityTestRule = createActivityRule<MainActivity>()
Is there something wrong???