fastlane-plugin-test_center 3.16.0 → 3.17.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e0ddcb1cdf461ac38fe07e31ef4988b6aa3665ac981f92ba3ca63a52263c4ec
|
4
|
+
data.tar.gz: 6afe121f625d7afb355a1ec550964c3c247bff7184e68af589218f15a07cf94f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
-
|
22
|
-
|
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 :
|
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
|