fastlane-plugin-accessibility_test 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b3949e93ba1bbf6ee4203b7928c66ff4cefd9b9381d5e0aa68116e5112cb741
|
4
|
+
data.tar.gz: 5e8987b5c4288576b68cbd48e14c18cd53641b0e2b705e798a943aa541458279
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741d86fc0e91bf93e712212a4eb55b01ec3138c80f86d21e7d23b1ee40ac83e1b3c38fc4b249b406dfcc3a4b4e4208c86265fe68a88a00beb2800c0f2960d887
|
7
|
+
data.tar.gz: e72bff23e7f705b99cde14ed08eee7a45f7c90c99576d31a6dfc055900039de4a88e3e0ffb9fc74798128b97c41791557db55b4ae7c7968f327848d971a9f6fd
|
@@ -8,8 +8,10 @@ module Fastlane
|
|
8
8
|
class AccessibilityTestAction < Action
|
9
9
|
def self.run(params)
|
10
10
|
download_dir = params[:download_dir]
|
11
|
-
|
12
|
-
|
11
|
+
|
12
|
+
results_bucket = params[:firebase_test_lab_results_bucket] || "#{params[:project_id]}_test_results"
|
13
|
+
results_dir = params[:firebase_test_lab_results_dir] || "firebase_test_result_#{DateTime.now.strftime('%Y-%m-%d-%H:%M:%S')}"
|
14
|
+
|
13
15
|
devices = params[:devices]
|
14
16
|
device_names = devices.map(&method(:device_name))
|
15
17
|
results = []
|
@@ -22,15 +24,15 @@ module Fastlane
|
|
22
24
|
app_apk: params[:app_apk],
|
23
25
|
console_log_file_name: "#{download_dir}/firebase_os_test_console.log",
|
24
26
|
timeout: params[:timeout],
|
25
|
-
firebase_test_lab_results_bucket:
|
26
|
-
firebase_test_lab_results_dir:
|
27
|
+
firebase_test_lab_results_bucket: results_bucket,
|
28
|
+
firebase_test_lab_results_dir: results_dir,
|
27
29
|
extra_options: "--no-record-video #{params[:extra_test_lab_options]}"
|
28
30
|
)
|
29
31
|
|
30
32
|
UI.message "Fetch screenshots and accessibility meta data from Firebase Test Lab results bucket"
|
31
33
|
device_names.each do |device_name|
|
32
34
|
`mkdir -p #{download_dir}/#{device_name}`
|
33
|
-
Action.sh "gsutil -m rsync -d -r gs://#{
|
35
|
+
Action.sh "gsutil -m rsync -d -r gs://#{results_bucket}/#{results_dir}/#{device_name}/artifacts #{download_dir}/#{device_name}"
|
34
36
|
end
|
35
37
|
|
36
38
|
UI.message "Execute accessibility check"
|
@@ -44,7 +46,7 @@ module Fastlane
|
|
44
46
|
UI.message "Push screenshots and accessibility meta data from Firebase Test Lab results bucket"
|
45
47
|
device_names.each do |device_name|
|
46
48
|
`mkdir -p #{download_dir}/#{device_name}`
|
47
|
-
Action.sh "gsutil -m rsync -d -r #{download_dir}/#{device_name} gs://#{
|
49
|
+
Action.sh "gsutil -m rsync -d -r #{download_dir}/#{device_name} gs://#{results_bucket}/#{results_dir}/#{device_name}/artifacts"
|
48
50
|
end
|
49
51
|
|
50
52
|
UI.message "Extract test result"
|
@@ -59,7 +61,7 @@ module Fastlane
|
|
59
61
|
{
|
60
62
|
title: proto.title,
|
61
63
|
message: proto.message,
|
62
|
-
image: Helper.firebase_object_url(
|
64
|
+
image: Helper.firebase_object_url(results_bucket, "#{results_dir}/#{device_name}/artifacts/#{File.basename(filePath, ".meta")}.png"),
|
63
65
|
type: proto.result_type
|
64
66
|
}
|
65
67
|
)
|