Command:
./gradlew build testDebugUnitTestCoverage
Test Cases Report:
/app/build/reports/tests/testDebugUnitTest/index.html
Find the code coverage reports in the below path:
/app/build/reports/jacoco/testDebugUnitTestCoverage/html/index.html
#Gradle task to generate reports:
UnitTestCaseDemo>app>reporting>testDebugUnitTestCoverage