I think first you need to find out what part of your code you want to check.
For codes that are not related to the user interface, you can test them with Robolectric. With Robolectric, the unit test code is the same as for a java application. But it is not suitable for testing ui components.
If you want to check ui, then you can choose robotics. But I always doubt whether it is worth writing tests for ui, they change too often.
source share