You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.