- Run end-to-end tests will automatically generate coverage data on the emulator. Run all tests by executing
./gradlew cucumber
- After running the tests, run
./gradlew jacocoTestReport
in the android directory of https://github.com/nerds-odd-e/attd-v2 to download the coverage data and generate a report. If you encounter a Permission Denied error, please executeadb root
first. - The coverage-related test configuration and code have been separated from the production code, so these codes will not be included in the final released apk.
Reference: https://appium.github.io/appium.io/docs/en/writing-running-appium/android/android-coverage/