@@ -73,6 +73,9 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
73
73
val gsutil = File (sdkPath, Constants .GSUTIL )
74
74
75
75
project.task(ensureGCloudSdk, {
76
+ group = Constants .FIREBASE_TEST_LAB
77
+ description = " Check if google cloud sdk is installed"
78
+
76
79
doFirst {
77
80
if (! gcloud.exists()) {
78
81
throw IllegalStateException (" gcloud does not exist in path ${sdkPath.absoluteFile} , but downloading is not supported on Windows" )
@@ -99,6 +102,9 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
99
102
val gsutil = File (sdkPath, Constants .GSUTIL )
100
103
101
104
project.createTask(ensureGCloudSdk, HiddenExec ::class , {
105
+ group = Constants .FIREBASE_TEST_LAB
106
+ description = " Install google cloud SDK if necessary"
107
+
102
108
outputs.files(gcloud, gsutil)
103
109
doFirst {
104
110
if (Os .isFamily(Os .FAMILY_WINDOWS )) {
@@ -127,6 +133,9 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
127
133
val sdk = createDownloadSdkTask(project, cloudSdkPath)
128
134
129
135
project.createTask(taskAuth, HiddenExec ::class , {
136
+ group = Constants .FIREBASE_TEST_LAB
137
+ description = " Authorize google cloud sdk"
138
+
130
139
dependsOn(ensureGCloudSdk)
131
140
val keyFile = keyFile
132
141
doFirst {
@@ -139,6 +148,9 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
139
148
commandLine = listOf (sdk.gcloud.absolutePath, " auth" , " activate-service-account" , " --key-file=${keyFile?.absolutePath} " )
140
149
})
141
150
project.createTask(taskSetProject, HiddenExec ::class , {
151
+ group = Constants .FIREBASE_TEST_LAB
152
+ description = " Configure google cloud sdk project"
153
+
142
154
dependsOn(ensureGCloudSdk)
143
155
doFirst {
144
156
if (googleProjectId == null ) {
@@ -148,6 +160,9 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
148
160
commandLine = listOf (sdk.gcloud.absolutePath, " config" , " set" , " project" , " $googleProjectId " )
149
161
})
150
162
project.task(taskSetup, {
163
+ group = Constants .FIREBASE_TEST_LAB
164
+ description = " Setup and configure google cloud sdk"
165
+
151
166
dependsOn(taskSetProject)
152
167
dependsOn(taskAuth)
153
168
})
@@ -177,9 +192,6 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
177
192
project.logger
178
193
)
179
194
180
-
181
-
182
-
183
195
(project.extensions.findByName(ANDROID ) as AppExtension ).apply {
184
196
testVariants.toList().forEach { testVariant ->
185
197
createGroupedTestLabTask(TestType .INSTRUMENTATION , devices, testVariant, firebaseTestLabProcessCreator, ignoreFailures, downloader)
@@ -209,7 +221,7 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
209
221
if (downloader != null ) {
210
222
project.task(cleanTask, closureOf<Task > {
211
223
group = Constants .FIREBASE_TEST_LAB
212
- description = " Clean test lab artifacts"
224
+ description = " Clean test lab artifacts on google storage "
213
225
dependsOn(taskSetup)
214
226
doLast {
215
227
downloader.clearResultsDir()
@@ -257,6 +269,8 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
257
269
}
258
270
259
271
project.task(runTestsTask, closureOf<Task > {
272
+ group = Constants .FIREBASE_TEST_LAB
273
+ description = " Run Android Tests in Firebase Test Lab"
260
274
dependsOn(tasks)
261
275
262
276
doFirst {
@@ -278,7 +292,7 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
278
292
if (downloader != null ) {
279
293
project.task(downloadTask, closureOf<Task > {
280
294
group = Constants .FIREBASE_TEST_LAB
281
- description = " Run Android Tests in Firebase Test Lab and download artifacts"
295
+ description = " Run Android Tests in Firebase Test Lab and download artifacts from google storage "
282
296
dependsOn(taskSetup)
283
297
dependsOn(runTestsTask)
284
298
mustRunAfter(cleanTask)
0 commit comments