almuwahhid / CleanCodeMVVMTesting

Android Unit Testing Clean Code Architecture + MVVM

Home Page:https://medium.com/@sreeharikv112/android-unit-testing-clean-code-architecture-with-mvvm-73eb2992cab7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clean Code Architecture + MVVM + UI / UT Testing

Source code of Medium Articles which describes Android Unit and Instrumentation Testing in Clean Code Architecture with MVVM.

Architecture followed

ArchDiagram1


Main Libraries Used

The article explains

  • 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


Landing Screen with data from SWAPI API

screen1


Uses Swapi API for explaining required data flow

Uses https://swapi.co/ API as network end points.

The complete API documentation detail can be found over https://swapi.co/documentation

About

Android Unit Testing Clean Code Architecture + MVVM

https://medium.com/@sreeharikv112/android-unit-testing-clean-code-architecture-with-mvvm-73eb2992cab7

License:Apache License 2.0


Languages

Language:Kotlin 100.0%