Create Gradle Tasks that executes other gradle task with parameters

▼魔方 西西 提交于 2021-02-08 05:15:15

问题


I use this gradle command to execute my UI-tests: ./gradlew connectedDebugAndroidTest -PUiTest

I want to define a custom gradle task that executes my UI-tests, so I could this:

task runUiTests() {
    dependsOn("connectedDebugAndroidTest")
}

How can I pass the parameter -PUiTest in my custom gradle task to the connectedDebugAndroidTest task?

来源:https://stackoverflow.com/questions/59284240/create-gradle-tasks-that-executes-other-gradle-task-with-parameters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!