fastlane-plugin-test_center 3.8.5 → 3.8.6

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: ea22b1e286af67f521152ef2ba5862103ff5f3c75602ff03ac7d9a2641008dc6
4
- data.tar.gz: e74c7f19184c067e0640f7fd8c4cf05724e7419dd8814dab498931b5b42f8fa0
3
+ metadata.gz: 88bf82b019ae47ea885712887f7e36b824e69bf3956f36d4a9d561b46c73d77b
4
+ data.tar.gz: cb59d58624a9262fc0ad76afdd309ee1eef355646b2add4f086cf7a7af075f9e
5
5
  SHA512:
6
- metadata.gz: 18c8938a1f216b4754f905c2402299d642855fb639b05d0e1c7dcfcea3bffb9452b7cd45c117daf639b079677dd51a82726d6cf2e016d4fe6ab119ccfaa298b6
7
- data.tar.gz: ea8206538bf8c600ca725a1c2cceb3e1c697b16c2f895ea01c0b194422a9c4c835de47aa1240ada12f55aa2170b28c90684b638a233993548415f307bad08720
6
+ metadata.gz: 4d343c8d43b24e634cdea321f407656011ec874d6a26b2f17a7b002cbcab1e5c2cfef36b3ee278d71453c23b94983d69f2062df29c728e44be9ef24978a63b51
7
+ data.tar.gz: 77b1bcc10f4066abdc5602448d8a6e714dd0b2f80a9c629e9a4b39509eec34bfec5d1f907dda68b4cba19239fe740067e16939c39969be6e3cbf85f84dd4fbea
@@ -15,6 +15,7 @@ module Fastlane
15
15
 
16
16
  prepare_for_testing(params.values)
17
17
 
18
+ coerce_destination_to_array(params)
18
19
  platform = :mac
19
20
  platform = :ios_simulator if Scan.config[:destination].any? { |d| d.include?('platform=iOS Simulator') }
20
21
 
@@ -31,6 +32,13 @@ module Fastlane
31
32
  summary
32
33
  end
33
34
 
35
+ def self.coerce_destination_to_array(params)
36
+ destination = params[:destination] || Scan.config[:destination] || []
37
+ unless destination.kind_of?(Array)
38
+ params[:destination] = Scan.config[:destination] = [destination]
39
+ end
40
+ end
41
+
34
42
  def self.print_multi_scan_parameters(params)
35
43
  return if Helper.test?
36
44
  # :nocov:
@@ -307,6 +315,13 @@ module Fastlane
307
315
  UI.important("Warning: the CoreSimulatorService may fail to connect to simulators if :parallel_testrun_count is greater than 6") if count > 6
308
316
  end
309
317
  ),
318
+ FastlaneCore::ConfigItem.new(
319
+ key: :pre_delete_cloned_simulators,
320
+ description: 'Delete left over cloned simulators before running a parallel testrun',
321
+ optional: true,
322
+ is_string: false,
323
+ default_value: true
324
+ ),
310
325
  FastlaneCore::ConfigItem.new(
311
326
  key: :testrun_completed_block,
312
327
  description: 'A block invoked each time a test run completes. When combined with :parallel_testrun_count, will be called separately in each child process',
@@ -7,7 +7,7 @@ module TestCenter
7
7
  end
8
8
 
9
9
  def setup
10
- if @options[:parallel_testrun_count] > 1
10
+ if @options[:parallel_testrun_count] > 1 && @options.fetch(:pre_delete_cloned_simulators, true)
11
11
  delete_multi_scan_cloned_simulators
12
12
  end
13
13
  end
@@ -22,7 +22,8 @@ module TestCenter
22
22
  return [] unless @options[:platform] == :ios_simulator
23
23
 
24
24
  @simhelper = SimulatorHelper.new(
25
- parallel_testrun_count: @options[:parallel_testrun_count]
25
+ parallel_testrun_count: @options[:parallel_testrun_count],
26
+ pre_delete_cloned_simulators: @options.fetch(:pre_delete_cloned_simulators, true)
26
27
  )
27
28
  @simhelper.setup
28
29
  @clones = @simhelper.clone_destination_simulators
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.8.5"
3
+ VERSION = "3.8.6"
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.5
4
+ version: 3.8.6
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-09-26 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json