Is there a way to run a specific Android instrumentation unit test using Gradle? I\'ve tried
gradle -Dtest.single=UnitTestName connectedInstrumentTest
Since Android gradle plugin 1.1.0-rc1, one can run single test class using --tests flag by executing:
--tests
./gradlew app:testDebug --tests=com.example.MyTest
See http://tools.android.com/tech-docs/unit-testing-support#TOC-Running-from-Gradle