fastlane-plugin-accessibility_test 0.1.4 → 0.1.5

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: 4f810176725eaf8613a2967e14a3adc7ab5f5e8415d66d56ed622925b49efdcf
4
- data.tar.gz: b376d6dedd7421893316cda23b8405515c10fd69459e7a7f7795322596e55ddf
3
+ metadata.gz: 3131816af5e84c3f51509091fd9c97a9dee09581a3ecec15039650c3e6f11f03
4
+ data.tar.gz: eb3a20615a7dbff2ede888ac261b5010099dda22e464c8ba776dc7b79f172040
5
5
  SHA512:
6
- metadata.gz: 0e739c28b482d781fed241f750f096bc30514379fb951eb9f4f11d8584db88932dcae38812a6de3a0dba267034fe675a74f33b811e7d02307b8dc84cdeb0c8be
7
- data.tar.gz: 27e3ec7fecd67fa36e7b282f9b2e5f02ee35f08686b351def2d918965079e49c33dbc29e9efbbd5a076c90ea0cef4dd507015279becf329b7e31026b42dfcc19
6
+ metadata.gz: 7f480f6186bfc5ddebde8555a4c5644b34197ab335af3b30bdcaaf0432465ecac905a9d83b1543a03df1ab2e9635d64888650111f42039852200b540c4de030d
7
+ data.tar.gz: 7ff163e217483e41101f4ad3b124b62a5ecbc1a25ccfb1d18ce3935bc6b4738bf37651d870d4ca82f0815c58aae771929698f84c57dd4cff23664105a0a7f53f
@@ -23,7 +23,7 @@ module Fastlane
23
23
  console_log_file_name: "#{download_dir}/firebase_os_test_console.log",
24
24
  timeout: params[:timeout],
25
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"
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]}"
27
27
  )
28
28
 
29
29
  UI.message "Fetch screenshots and accessibility meta data from Firebase Test Lab results bucket"
@@ -37,6 +37,7 @@ module Fastlane
37
37
  test_params = params[:test_params] == nil ? "" : params[:test_params]
38
38
  device_names.each do |device_name|
39
39
  Action.sh "java -jar #{executable} --target=#{download_dir}/#{device_name} #{test_params}"
40
+ Action.sh "mogrify -scale 320x #{download_dir}/#{device_name}/accessibility[0-9]*_check_result[0-9]*.png"
40
41
  end
41
42
 
42
43
  UI.message "Push screenshots and accessibility meta data from Firebase Test Lab results bucket"
@@ -78,10 +79,10 @@ module Fastlane
78
79
  "### :white_check_mark: All test passed (with #{warnings.length} warnings)" :
79
80
  "### :x: #{errors.length} error found. (with #{errors.length} warnings)"
80
81
  error_cells = errors.map {|result|
81
- "|<img src=\"#{result[:image]}\">|**#{result[:title]}**<br/>#{result[:message]}|\n"
82
+ "|<img src=\"#{result[:image]}\" height=\"320px\">|**#{result[:title]}**<br/>#{result[:message]}|\n"
82
83
  }.inject(&:+)
83
84
  warning_cells = warnings.map {|result|
84
- "|<img src=\"#{result[:image]}\">|**#{result[:title]}**<br/>#{result[:message]}|\n"
85
+ "|<img src=\"#{result[:image]}\" height=\"320px\">|**#{result[:title]}**<br/>#{result[:message]}|\n"
85
86
  }.inject(&:+)
86
87
 
87
88
  message = <<-EOS
@@ -174,6 +175,12 @@ module Fastlane
174
175
  description: "Name of Firebase Test Lab results bucket",
175
176
  type: String,
176
177
  optional: true),
178
+ FastlaneCore::ConfigItem.new(key: :extra_test_lab_options,
179
+ env_name: "EXTRA_TEST_LAB_OPTIONS",
180
+ description: "Extra options that you need to pass to the gcloud command. Default: empty string",
181
+ is_string: true,
182
+ optional: true,
183
+ default_value: ""),
177
184
  FastlaneCore::ConfigItem.new(key: :download_dir,
178
185
  env_name: "DOWNLOAD_DIR",
179
186
  description: "Target directory to download screenshots from firebase",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AccessibilityTest
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Tsukamoto