Skip to content
octogradiste edited this page Apr 19, 2024 · 1 revision

Robolectric

To make our composable tests go faster, we can move them from androidTest to the test folder. Make sure you annotate your test class with @RunWith(AndroidJUnit4::class).

Note

If some tests fail, which did not before, it might be because the screen size of robolectric is to small to show all the composble of your screen. You can use assertIsDisplayed() to check if this is the case.

Note

For now we don't have robolectric setup with hilt.

Clone this wiki locally