I'm quite a noob in the world of testing. I've read all the materials related to Android testing:
- Unit test
- Instrumentation test
- JUnit
- Robolectric
- Espresso
- etc.
The thing is that, all the examples provided only cover very simple use cases, such as verifying whether a text is on the screen or verifying whether the calculation of a function produce the correct result.
Let's say I have an app which is closer to a real-world app: An app that has login and fetch list of items by Retrofit and display it on a RecyclerView. In this case:
- What are the things that experienced programmers will test?
- In case of Retrofit and RecyclerView how do you actually test it? check if json result match the one displayed on the RecyclerView?
Hope some experts in testing will shed some lights on this.