fastlane-plugin-test_center 3.8.14 → 3.8.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: 599b59e9ac6f3d4c3842f5826c0a4602b32ad0dd019396ac92dfe1db5b55f1af
4
- data.tar.gz: 8b2ffe48dcbf4f4cc43069c439c07851f21b37093153d431f855b0060a2c8eae
3
+ metadata.gz: b4adb9ed126d094e159090135e62445355b0ddf62a93d30ecccb482081bc2254
4
+ data.tar.gz: ea0e33f2159a5e6b0b189f8d848a2aa4a446c4cc70c95a5487bcf617913432f1
5
5
  SHA512:
6
- metadata.gz: 18740ee92788216be9f291f91b47593e9bd4e5f3fcb5de6e5ab00a29c748ca8a2f3c4389d7fcb1ed248a2325a0cbcd9f544d34b7985d9bb349fc8fbb8cda179f
7
- data.tar.gz: 77a084f31b2bf4779f9fe7a55ab48d18fbb243e859018ac29f3d069d69bb5f93aa381d14d658cb985998b3ca206ff4c6ef1ea3e0a343e5db2768df6e5ae774e2
6
+ metadata.gz: 9235adc15d1021a1b5dd92117eb3623ee9b52fa21ecccdc0268b68fced2073b0c241f56e7203175b78b94cdb3b0d5270bcf444121d596d5b380aaaabb57e2baf
7
+ data.tar.gz: 9d3e7fa82911ed52c67d4169d813c5c2d6d997f59d21983e59f3b68d63b184ce6bb2f1f743e377913174eb67c9976c57c05cc30790e86ee1978d0a39e3b994ec
@@ -6,6 +6,11 @@ module Fastlane
6
6
  require 'xctest_list'
7
7
  require 'plist'
8
8
 
9
+ require_relative '../helper/multi_scan_manager'
10
+ require_relative '../helper/scan_helper'
11
+
12
+ ScanHelper = ::TestCenter::Helper::ScanHelper
13
+
9
14
  class MultiScanAction < Action
10
15
  def self.run(params)
11
16
  params[:quit_simulators] = params._values[:force_quit_simulator] if params._values[:force_quit_simulator]
@@ -1,10 +1,10 @@
1
1
  require_relative 'multi_scan_manager/device_manager'
2
- require_relative 'multi_scan_manager/parallel_test_batch_worker'
3
2
  require_relative 'multi_scan_manager/report_collator'
4
- require_relative 'multi_scan_manager/retrying_scan_helper.rb'
3
+ require_relative 'multi_scan_manager/retrying_scan_helper'
5
4
  require_relative 'multi_scan_manager/retrying_scan'
6
5
  require_relative 'multi_scan_manager/runner'
7
6
  require_relative 'multi_scan_manager/simulator_helper'
8
- require_relative 'multi_scan_manager/test_batch_worker_pool'
9
7
  require_relative 'multi_scan_manager/test_batch_worker'
8
+ require_relative 'multi_scan_manager/parallel_test_batch_worker'
9
+ require_relative 'multi_scan_manager/test_batch_worker_pool'
10
10
  require_relative 'xctestrun_info'
@@ -1,6 +1,11 @@
1
1
  module TestCenter
2
2
  module Helper
3
3
  module MultiScanManager
4
+ require_relative '../../actions/collate_junit_reports'
5
+ require_relative '../../actions/collate_html_reports'
6
+ require_relative '../../actions/collate_json_reports'
7
+ require_relative '../../actions/collate_test_result_bundles'
8
+
4
9
  class ReportCollator
5
10
  CollateJunitReportsAction = Fastlane::Actions::CollateJunitReportsAction
6
11
  CollateHtmlReportsAction = Fastlane::Actions::CollateHtmlReportsAction
@@ -1,49 +1,54 @@
1
- module ScanHelper
2
- def self.print_scan_parameters(params)
3
- return if FastlaneCore::Helper.test?
4
1
 
5
- # :nocov:
6
- FastlaneCore::PrintTable.print_values(
7
- config: params,
8
- hide_keys: [:destination, :slack_url],
9
- title: "Summary for scan #{Fastlane::VERSION}"
10
- )
11
- # :nocov:
12
- end
13
-
14
- def self.remove_preexisting_simulator_logs(params)
15
- return unless params[:include_simulator_logs]
16
-
17
- output_directory = File.absolute_path(params.fetch(:output_directory, 'test_results'))
18
-
19
- glob_pattern = "#{output_directory}/**/system_logs-*.{log,logarchive}"
20
- logs = Dir.glob(glob_pattern)
21
- FileUtils.rm_rf(logs)
22
- end
23
-
24
- def self.scan_options_from_multi_scan_options(params)
25
- valid_scan_keys = Fastlane::Actions::ScanAction.available_options.map(&:key)
26
- params.select { |k,v| valid_scan_keys.include?(k) }
27
- end
28
-
29
- def self.options_from_configuration_file(params)
30
- config = FastlaneCore::Configuration.create(
31
- Fastlane::Actions::ScanAction.available_options,
32
- params
33
- )
34
- config_file = config.load_configuration_file(Scan.scanfile_name, nil, true)
35
-
36
- overridden_options = config_file ? config_file.options : {}
37
-
38
- FastlaneCore::Project.detect_projects(config)
39
- project = FastlaneCore::Project.new(config)
2
+ module TestCenter
3
+ module Helper
4
+ module ScanHelper
5
+ def self.print_scan_parameters(params)
6
+ return if FastlaneCore::Helper.test?
7
+
8
+ # :nocov:
9
+ FastlaneCore::PrintTable.print_values(
10
+ config: params,
11
+ hide_keys: [:destination, :slack_url],
12
+ title: "Summary for scan #{Fastlane::VERSION}"
13
+ )
14
+ # :nocov:
15
+ end
16
+
17
+ def self.remove_preexisting_simulator_logs(params)
18
+ return unless params[:include_simulator_logs]
19
+
20
+ output_directory = File.absolute_path(params.fetch(:output_directory, 'test_results'))
21
+
22
+ glob_pattern = "#{output_directory}/**/system_logs-*.{log,logarchive}"
23
+ logs = Dir.glob(glob_pattern)
24
+ FileUtils.rm_rf(logs)
25
+ end
26
+
27
+ def self.scan_options_from_multi_scan_options(params)
28
+ valid_scan_keys = Fastlane::Actions::ScanAction.available_options.map(&:key)
29
+ params.select { |k,v| valid_scan_keys.include?(k) }
30
+ end
31
+
32
+ def self.options_from_configuration_file(params)
33
+ config = FastlaneCore::Configuration.create(
34
+ Fastlane::Actions::ScanAction.available_options,
35
+ params
36
+ )
37
+ config_file = config.load_configuration_file(Scan.scanfile_name, nil, true)
38
+
39
+ overridden_options = config_file ? config_file.options : {}
40
40
 
41
- imported_path = File.expand_path(Scan.scanfile_name)
42
- Dir.chdir(File.expand_path("..", project.path)) do
43
- config_file = config.load_configuration_file(Scan.scanfile_name, nil, true) unless File.expand_path(Scan.scanfile_name) == imported_path
44
- overridden_options.merge!(config_file.options) if config_file
41
+ FastlaneCore::Project.detect_projects(config)
42
+ project = FastlaneCore::Project.new(config)
43
+
44
+ imported_path = File.expand_path(Scan.scanfile_name)
45
+ Dir.chdir(File.expand_path("..", project.path)) do
46
+ config_file = config.load_configuration_file(Scan.scanfile_name, nil, true) unless File.expand_path(Scan.scanfile_name) == imported_path
47
+ overridden_options.merge!(config_file.options) if config_file
48
+ end
49
+ overridden_options
50
+ end
45
51
  end
46
- overridden_options
47
52
  end
48
53
  end
49
54
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.8.14"
3
+ VERSION = "3.8.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-test_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.14
4
+ version: 3.8.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-21 00:00:00.000000000 Z
11
+ date: 2019-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json