Source code of Medium Article which describes Android Unit and Instrumentation Testing in Clean Code Architecture with MVVM.
- Ways to include dependencies using Koin
- Making usefull data flow using above architecture
- Creating unit test case with dependencies
- Override the default dependencies
- Mock required dependency and create required test cases
- Execute both Unit and Instrumentation test cases
For detailed explanation of points mentioned above, checkout Article published in Medium
-
Retrofit https://square.github.io/retrofit/
-
MockWebServer https://github.com/square/okhttp/tree/master/mockwebserver
-
Koin (💉Dipendency Injection) https://insert-koin.io/
-
Kotlin (https://developer.android.com/kotlin)
Uses https://swapi.co/ API as network end points.
The complete API documentation detail can be found over https://swapi.co/documentation