fastlane-plugin-accessibility_test 0.1.13 → 0.1.14

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: 5328a46f0b962c79ce5ece7950a1b45ecb9f4916be68311e7a86dc7cc9b6daea
4
- data.tar.gz: d5f8d815124acba55dd1b43fec42c0cab1ec5f1d8a04a916c2d372af597e40b8
3
+ metadata.gz: aee50f08f35caab0d4c599f29636493a4177d19d67d458770abea94555dc12a4
4
+ data.tar.gz: 4c9eb9342c82ca5e3751d3b9c4dc9abd43de0020e316f06ff1566d0f53b23e16
5
5
  SHA512:
6
- metadata.gz: 25b7e68a9641ea5ee3656f2429050fa6cd40562e314aa7fc0bd69025b94f4a585163312eef0d691479c5010517240dea17bf6c3b1be8d9bb3e0a1b878946ee2a
7
- data.tar.gz: a1e797e6c8cc38887059b8e9209adbf03443deb3b7266eec1b020fd6d7a2603c493bc7bad27733784f1c19f57e94af4cc9f08794c9dc5a1f991ef7306b0819b4
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] == nil ? "#{params[:project_id]}_test_results" : 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
- notify_to_slack: false,
26
- extra_options: "--results-bucket #{firebase_test_lab_results_bucket} --results-dir #{firebase_test_lab_results_dir} --no-record-video #{params[:extra_test_lab_options]}"
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 = <<-EOS
89
- ## Accessibility Test Result
90
- #{summary}
89
+ title_message = <<~EOS
90
+ ## Accessibility Test Result
91
+ #{summary}
91
92
  EOS
92
93
 
93
- errors_message = <<-EOS
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 = <<-EOS
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 : "")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AccessibilityTest
3
- VERSION = "0.1.13"
3
+ VERSION = "0.1.14"
4
4
  end
5
5
  end
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.13
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-09-30 00:00:00.000000000 Z
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.6
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.