Skip to content

Generate code coverage

Valeria Rogatchevskikh edited this page Aug 14, 2020 · 3 revisions

Coverage reports are set to run for test and androidTest using the code from all the modules. Since Android Tests will be run, we need to have a device or emulator connected. You can do it manually: ./gradlew clean testFlowDebugUnitTestCoverage

Once the report is successfully generated, use these instructions to send it to codacy https://github.com/codacy/codacy-coverage-reporter/blob/master/docs/advanced/installation-methods.md#github. The coverage report is located here: app/build/reports/jacoco/testFlowDebugUnitTestCoverage/testFlowDebugUnitTestCoverage.xml