How can I create an "alias" for gradle property name?
For example, Android Instrumentation Runner provides an ability to execute only certain test class / method:
./gradlew connectedAndroidTest \
-Pandroid.testInstrumentationRunnerArguments.class=com.example.TestSuiteName
How can I make this param name shorter?
I have tried creating custom task like this:
task executeTest {
setProperty('android.testInstrumentationRunnerArguments.class', 'com.example.TestSuiteName')
dependsOn 'connectedAndroidTest'
}
But it blows up with groovy.lang.MissingPropertyException
.
The same is with using doLast {}
closure.
Any suggestions?