A simple Android Weather App is developed in MVVM Architecture to showcase Architecture Components, UI and Unit test cases.
This sample showcases the following Architecture Components
- ViewModels
- LiveData
- Data Binding
- Handling Lifecycles
Other Components
- Navigation Component
- Dagger 2
Tests
- Unit Test (Local and Robolectric)
- UI Test (using Espresso)
Go to the project directory and run
./gradlew assembleDebug
-
Right click test class -> select run / run with coverage -or-
-
Go to the project directory and run following for local unit tests
./gradlew test
- Go to the project directory and run following for instrumented unit test
./gradlew connectedAndroidTest