fastlane-plugin-accessibility_test 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aee50f08f35caab0d4c599f29636493a4177d19d67d458770abea94555dc12a4
|
4
|
+
data.tar.gz: 4c9eb9342c82ca5e3751d3b9c4dc9abd43de0020e316f06ff1566d0f53b23e16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a2f22cab3dca50b8bb93795abcd6afb6a4bdacc8c298dd48231d48da2764ccfb238a3b2b1c1c1ccd83807236773d0e3ecd3419f97c24ca1699bd2ad7a69ff3d
|
7
|
+
data.tar.gz: ade1f5132210e70946764b72959dd0ef0fd862f4bf45157aee8c089498802c7b3cb76995c20304ac55dc96a5ae8c5f8263c7a6ee8898f3fd3048e0b96e9ed01f
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
8
8
|
class AccessibilityTestAction < Action
|
9
9
|
def self.run(params)
|
10
10
|
download_dir = params[:download_dir]
|
11
|
-
firebase_test_lab_results_bucket = params[:firebase_test_lab_results_bucket]
|
11
|
+
firebase_test_lab_results_bucket = params[:firebase_test_lab_results_bucket] ? "#{params[:project_id]}_test_results" : params[:firebase_test_lab_results_bucket]
|
12
12
|
firebase_test_lab_results_dir = "firebase_test_result_#{DateTime.now.strftime('%Y-%m-%d-%H:%M:%S')}"
|
13
13
|
devices = params[:devices]
|
14
14
|
device_names = devices.map(&method(:device_name))
|
@@ -22,8 +22,9 @@ module Fastlane
|
|
22
22
|
app_apk: params[:app_apk],
|
23
23
|
console_log_file_name: "#{download_dir}/firebase_os_test_console.log",
|
24
24
|
timeout: params[:timeout],
|
25
|
-
|
26
|
-
|
25
|
+
firebase_test_lab_results_bucket: firebase_test_lab_results_bucket,
|
26
|
+
firebase_test_lab_results_dir: firebase_test_lab_results_dir,
|
27
|
+
extra_options: "--no-record-video #{params[:extra_test_lab_options]}"
|
27
28
|
)
|
28
29
|
|
29
30
|
UI.message "Fetch screenshots and accessibility meta data from Firebase Test Lab results bucket"
|
@@ -85,28 +86,28 @@ module Fastlane
|
|
85
86
|
"|<img src=\"#{results[0].to_h[:image]}\" loading=\"lazy\">|**#{results[0].to_h[:title]}**<br/>#{results[0].to_h[:message]}|<img src=\"#{results[1].to_h[:image]}\" loading=\"lazy\">|**#{results[1].to_h[:title]}**<br/>#{results[1].to_h[:message]}|\n"
|
86
87
|
}.inject(&:+)
|
87
88
|
|
88
|
-
title_message =
|
89
|
-
## Accessibility Test Result
|
90
|
-
#{summary}
|
89
|
+
title_message = <<~EOS
|
90
|
+
## Accessibility Test Result
|
91
|
+
#{summary}
|
91
92
|
EOS
|
92
93
|
|
93
|
-
errors_message =
|
94
|
+
errors_message = <<~EOS
|
94
95
|
|
95
|
-
|Screenshot|message|Screenshot|message|
|
96
|
-
|-|-|-|-|
|
97
|
-
#{error_cells}
|
96
|
+
|Screenshot|message|Screenshot|message|
|
97
|
+
|-|-|-|-|
|
98
|
+
#{error_cells}
|
98
99
|
EOS
|
99
100
|
|
100
|
-
warnings_message =
|
101
|
+
warnings_message = <<~EOS
|
101
102
|
|
102
|
-
<details>
|
103
|
-
<summary>#{warnings.length} warnings. Click here to see details.</summary>
|
103
|
+
<details>
|
104
|
+
<summary>#{warnings.length} warnings. Click here to see details.</summary>
|
104
105
|
|
105
|
-
|Screenshot|message|Screenshot|message|
|
106
|
-
|-|-|-|-|
|
107
|
-
#{warning_cells}
|
106
|
+
|Screenshot|message|Screenshot|message|
|
107
|
+
|-|-|-|-|
|
108
|
+
#{warning_cells}
|
108
109
|
|
109
|
-
</details>
|
110
|
+
</details>
|
110
111
|
EOS
|
111
112
|
|
112
113
|
message = title_message + (!errors.empty? ? errors_message : "") + ((params[:enable_warning] && !warnings.empty?) ? warnings_message : "")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-accessibility_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takeshi Tsukamoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
rubygems_version: 3.0.
|
187
|
+
rubygems_version: 3.0.3
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: Accessibility test with Firebase Test Lab for Android.
|