fastlane-plugin-test_center 3.16.0 → 3.17.0

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: 06b7ebcc7e0d62e28f6cfb7ceff979cbc0fc122bbbb42a8dc242b1a76433af90
4
- data.tar.gz: c5c4225e577b68ee289720ebcd1ff22312f16a3f560a8e4faffaa23a1de17b6e
3
+ metadata.gz: 7e0ddcb1cdf461ac38fe07e31ef4988b6aa3665ac981f92ba3ca63a52263c4ec
4
+ data.tar.gz: 6afe121f625d7afb355a1ec550964c3c247bff7184e68af589218f15a07cf94f
5
5
  SHA512:
6
- metadata.gz: c9917198062684ab363b755154af6b59dc9ff373b555942c5a57ada1141bba6a44d836336cddbdec5e041a412f6977db337fc3077fa6bc13110d8b04a3f546cc
7
- data.tar.gz: 360d3c4100aab492d2b3949b8d05c34bd36e1c5973de8809e05657b43bf59d608b91b211f0b1cc13608c1e9939a65dd19c6b9be733b5c238bf78f44009e5d8c6
6
+ metadata.gz: 7e7018ea78bf32cd3cb8cffb2651a8558a820e0816d8f7adb4336341f139f1b27cf7ffcd44df6d4b8a56c1902f4cd5c3f58d75c06558fad4648a410c2c981934
7
+ data.tar.gz: 88cc071756b5e28619c620b5e0256119b2d30671a8c28220008db564a426e22d081d4171759e8dbc4fc3d876d64c34968eec1a6784bc5b095b5742bc8ec38342
@@ -6,26 +6,37 @@ module Fastlane
6
6
  def self.run(params)
7
7
  testplan_path = params[:testplan]
8
8
 
9
- testplan = JSON.load(File.open(testplan_path))
9
+ testplan = JSON.parse(File.open(testplan_path).read)
10
10
  only_testing = []
11
+ skip_testing = []
11
12
  UI.verbose("Examining testplan JSON: #{testplan}")
12
13
  testplan['testTargets'].each do |test_target|
13
14
  testable = test_target.dig('target', 'name')
14
15
  if test_target.key?('selectedTests')
15
16
  UI.verbose(" Found selectedTests")
16
- test_identifiers = test_target['selectedTests'].each do |selected_test|
17
+ test_target['selectedTests'].each do |selected_test|
17
18
  selected_test.delete!('()')
18
19
  UI.verbose(" Found test: '#{selected_test}'")
19
20
  only_testing << "#{testable}/#{selected_test.sub('\/', '/')}"
20
21
  end
21
- else
22
- UI.verbose(" No selected tests, using testable '#{testable}'")
22
+ end
23
+ if test_target.key?('skippedTests')
24
+ UI.verbose(" Found skippedTests")
25
+ test_target['skippedTests'].each do |skipped_test|
26
+ skipped_test.delete!('()')
27
+ UI.verbose(" Found test: '#{skipped_test}'")
28
+ skip_testing << "#{testable}/#{skipped_test.sub('\/', '/')}"
29
+ end
30
+ end
31
+ unless test_target.key?('selectedTests') || test_target.key?('skippedTests')
32
+ UI.verbose(" No selected or skipped tests, using testable '#{testable}'")
23
33
  only_testing << testable
24
34
  end
25
35
  end
26
36
  {
27
37
  code_coverage: testplan.dig('defaultOptions', 'codeCoverage'),
28
- only_testing: only_testing
38
+ only_testing: only_testing,
39
+ skip_testing: skip_testing
29
40
  }
30
41
  end
31
42
 
@@ -57,7 +68,7 @@ module Fastlane
57
68
  end
58
69
 
59
70
  def self.return_value
60
- "Returns a Hash with keys :code_coverage and :only_testing for the given testplan"
71
+ "Returns a Hash with keys :code_coverage, :only_testing, and :skip_testing for the given testplan"
61
72
  end
62
73
 
63
74
  def self.example_code
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.16.0"
3
+ VERSION = "3.17.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-test_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.0
4
+ version: 3.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson