Skip to content

Simple android application with API implementation (MVVM + Clean Architecture including Unit, Integration & UI Test Cases)

Notifications You must be signed in to change notification settings

shubham-gangpuri/MVVM_Clean_Testing

Repository files navigation

MVVM + Clean + Testing

Simple API implementation with MVVM + Clean Architecture and Unit, Integration & UI Test Cases (https://github.com/shubhamgangpuri/MVVM_Clean_Testing/tree/master)

Architecture Used :

MVVM + Clean

Android Jetpack Components Used :

  1. Jetpack Navigation
  2. Data Binding
  3. Coroutines
  4. RecyclerView
  5. ViewModel
  6. LiveData
  7. Constraint layout

Networking Library :

Retrofit2

Dependency Injection :

Dagger-Hilt

Testing Library :

  1. JUnit 4 (Unit test cases)
  2. Mockito (To create mock objects)
  3. Google truth library (For test assertions and error messages)
  4. Dagger-Hilt testing
  5. Espresso (For UI testing)

Covered functionalities :

  1. Splash Screen, Product List Screen
  2. Search functionality on product list screen
  3. Basic form validation applied.

Project package structure for main / test / androidTest

Screenshot 2022-03-22 at 18 58 25 Screenshot 2022-03-22 at 19 00 45

Data Flow diagram in MVVM + Clean Architecture

MVVM + Clean