хз как через градл делается, но я таки смог построить команду для запуска из терминала.
/Users/alexeypushkarev/Library/Android/sdk/platform-tools/adb shell 'CLASSPATH=$(pm path
androidx.test.services) app_process / androidx.test.services.shellexecutor.ShellMain am instrument -r -w -e targetInstrumentation org.consumerreports.ratings.test/androidx.test.runner.AndroidJUnitRunner -e clearPackageData true -e debug false -e class org.consumerreports.ratings.tests.PriceAndShopTests#testAmazonWithoutPriceShoppingItem androidx.test.orchestrator/androidx.test.orchestrator.AndroidTestOrchestrator'