简体   繁体   中英

android gradle task source code

I use ./gradlew connectedAndroidtest to test my android app.

when the connectedAndroidtest task running,

from the terminal i can get the task that runed many sub-tasks.

:assembleDebugAndroidTest UP-TO-DATE
:connectedDebugAndroidTest ...

but i don't understand that sub-tasks details.

I try to find gradle source code but can't find any about connectedDebugAndroidTest tasks.

Are android tasks open source? or somewhere can know more details.

Thanks.

If you would like to see Android Build Tools source code, there is open Google repository with it: android/platform/tools/build/master

Specifically Android Gradle Plugin: build/gradle .

If you would like to see manual for specific task, you could execute:

./gradlew help --task "${taskName}"

In your case it should be:

./gradlew help --task connectedAndroidTest

Output:

Detailed task information for connectedAndroidTest

Path
     :app:connectedAndroidTest

Type
     Task (org.gradle.api.Task)

Description
     Installs and runs instrumentation tests for all flavors on connected devices.

Group
     verification

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM