Android - what is the gradle connectedCheck task used to

When I run the following command, I get a description of connectedCheck , but I'm still not sure what it was used for. Can someone give me an example in the real world?

 ./gradlew tasks prints ... Verification tasks ------------------ check - Runs all checks. connectedCheck - Runs all device checks on currently connected devices. connectedInstrumentTest - Installs and runs the tests for Build 'Debug' on connected devices. deviceCheck - Runs all device checks using Device Providers and Test Servers. ... 
+4
source share
1 answer

The ./gradlew connectedCheck command performs the control tests located in the src/androidTests/ on the connected Android device or emulator. Such tests may have Android API dependencies. These tests can be simple statements or UI tests with an Espresso framework or something similar. Yesterday I wrote a post about automated tests on Android, including a more detailed description of them. You can check it out here: fooobar.com/questions/1602635 / ....

+15
source

All Articles