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 +4 -4
- data/lib/fastlane/plugin/test_center/actions/multi_scan.rb +5 -0
- data/lib/fastlane/plugin/test_center/helper/multi_scan_manager.rb +3 -3
- data/lib/fastlane/plugin/test_center/helper/multi_scan_manager/report_collator.rb +5 -0
- data/lib/fastlane/plugin/test_center/helper/scan_helper.rb +48 -43
- data/lib/fastlane/plugin/test_center/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4adb9ed126d094e159090135e62445355b0ddf62a93d30ecccb482081bc2254
|
4
|
+
data.tar.gz: ea0e33f2159a5e6b0b189f8d848a2aa4a446c4cc70c95a5487bcf617913432f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2019-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|