Gradle Android test does not support filter (--tests).
gradlew test --tests com.example.test.*
works.
gradlew connectedAndroidTest --tests com.example.test.*
Error: Unknown command-line option '--tests'.
Gradle Android test does not support filter (--tests).
gradlew test --tests com.example.test.*
works.
gradlew connectedAndroidTest --tests com.example.test.*
Error: Unknown command-line option '--tests'.
To run specific AndroidJUnit4 tests providing instrumentation runner is necessary to gradle.
try this format:
Here is the list of all useful gradle commands {LINK}