As stated in the AndroidTestingBlueprint you can use the android.testInstrumentationRunnerArguments.class
property:
./gradlew app:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.example.android.testing.blueprint.ui.espresso.EspressoTest