Run specific Android Espresso tests by creating custom annotations. We use Kotlin and run tests by command-line via Gradle.
./gradlew connectedAndroidTest
./gradlew connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.mutant.androidtestcustomannotations.annotation.Rat