This sample application developed with MVVM, Android Architechture Component, LiveData, JUnit, Robolectric, Retrofit, Glide and Jacoco.
Import this project into Android studio.
Android studio Toolbar - Run -> Run 'app'
Open terminal in Android studio
or
Android studio Toolbar - View -> Tool Window -> Terminal
execute the following commend in terminal
./gradlew jacocoTestReport
Test report path: Project-PATH/build/reports/tests/testDebugUnitTest/index.html
Code coverage report path : Project-PATH/build/reports/jacoco/jacocoTestReport/html/index.html