I am following these two links 1 and 2 for espresso test report but getting error while running ./gradlew createDebugCoverageReport. The error will be shown in
Make sure that all the requisites are checked, per this other thread: https://stackoverflow.com/a/25525390/3195307
Make sure there is a connected device ready to execute your tests. Emulator, physical device, or cloud device. It should show in 'Select Deployment Target' under 'connected devices' if you play your tests in IDE.
Run Gradlew (project gradle wrapper) from the project directory like so: ./gradlew :app:createDebugCoverageReport