fastlane-plugin-test_center 3.15.3 → 3.18.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: b7ed186518bf972a65bb1664e5843cfb5da505a93c216af4402ae2fecb6ed52f
4
- data.tar.gz: 557cb341dbda37fb2eae18ac8f494ddff889039a95e0337a2f47122cd436c83c
3
+ metadata.gz: 4f6d99aabca4387ba0c9662f464ffdfad90efe6b2d67fc8155957660c9329e79
4
+ data.tar.gz: 70bedb512cd8593bb900196e32922f33e3d30c39318a354d7164f47021c686a6
5
5
  SHA512:
6
- metadata.gz: b11864d9cc3a2863c0418b70da52e879fe8c281a85eba39c6c625fc33d96b9e437d95526e5d7b93bfbaa16a86904d9577ebb5c6de2ed7139b39fcb74d3989eac
7
- data.tar.gz: 9eb0523c3ce1114b5e39fb1dcac9169fbcf6c5b1e519b8a573b18389277102ac1368b66adb09b874ffc0cf51f29357a79808d4fcd1b890d9809da71f09ed43c9
6
+ metadata.gz: a583686bff475a7d84b4588c10bade1c97de8cf9cbac109da0e418dd52ca967ffcc9353a178f681640d4424563dff1dedee4e3f22662daa1099698e66d6b48e6
7
+ data.tar.gz: 3bd9f9908260144985184c5c3d22121fddf54c9c635a19f2db5542cdaf949526c051155a2ef99b75388b31a06e4f492e3e7ff2a62859751b6973b22d772d9b87
data/README.md CHANGED
@@ -99,8 +99,7 @@ _fastlane_ is the easiest way to automate beta deployments and releases for your
99
99
  ## Supporters
100
100
 
101
101
  ![Владислав Давыдов](https://avatars1.githubusercontent.com/u/47553334?s=44&u=4691860dba898943b947180b3d28bb85851b0d7c&v=4)
102
- [vdavydovHH](https://github.com/vdavydovHH) ![amelendezSGY](https://avatars1.githubusercontent.com/u/28657466?s=44&v=4)[amelendezSGY](https://github.com/amelendezSGY)
103
-
102
+ [vdavydovHH](https://github.com/vdavydovHH)
104
103
  ## License
105
104
 
106
105
  MIT
@@ -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
@@ -6,19 +6,19 @@ module TestCenter
6
6
  attr_reader :report_count
7
7
 
8
8
  def initialize(output_types = nil, output_files = nil, custom_report_file_name = nil)
9
- @output_types = output_types || 'junit'
9
+ @output_types = output_types || 'xcresult'
10
10
  @output_files = output_files || custom_report_file_name
11
11
  @report_count = 0
12
12
 
13
13
  if @output_types && @output_files.nil?
14
14
  @output_files = @output_types.split(',').map { |type| "report.#{type}" }.join(',')
15
15
  end
16
- unless @output_types.include?('junit')
17
- FastlaneCore::UI.important('Scan output types missing \'junit\', adding it')
18
- @output_types = @output_types.split(',').push('junit').join(',')
16
+ unless @output_types.include?('xcresult')
17
+ FastlaneCore::UI.important('Scan output types missing \'xcresult\', adding it')
18
+ @output_types = @output_types.split(',').push('xcresult').join(',')
19
19
  if @output_types.split(',').size == @output_files.split(',').size + 1
20
- @output_files = @output_files.split(',').push('report.xml').join(',')
21
- FastlaneCore::UI.message('As output files has one less than the new number of output types, assumming the filename for the junit was missing and added it')
20
+ @output_files = @output_files.split(',').push('report.xcresult').join(',')
21
+ FastlaneCore::UI.message('As output files has one less than the new number of output types, assumming the filename for the xcresult was missing and added it')
22
22
  end
23
23
  end
24
24
 
@@ -57,9 +57,11 @@ module TestCenter
57
57
  numbered_filename(filename)
58
58
  end
59
59
 
60
+ output_types = types.join(',') unless types.empty?
61
+ output_files = files.join(',') unless files.empty?
60
62
  options.merge(
61
- output_types: types.join(','),
62
- output_files: files.join(',')
63
+ output_types: output_types,
64
+ output_files: output_files
63
65
  )
64
66
  end
65
67
 
@@ -145,7 +147,7 @@ module TestCenter
145
147
  def json_numbered_fileglob
146
148
  "#{File.basename(json_reportname, '.*')}-[1-9]*#{json_filextension}"
147
149
  end
148
-
150
+
149
151
  def self.ensure_output_includes_xcresult(output_types, output_files)
150
152
  return [output_types, output_files] if includes_xcresult?(output_types) || output_types.nil?
151
153
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.15.3"
3
+ VERSION = "3.18.0"
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.15.3
4
+ version: 3.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-18 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: trainer
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: xcodeproj
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +114,14 @@ dependencies:
128
114
  requirements:
129
115
  - - ">="
130
116
  - !ruby/object:Gem::Version
131
- version: 2.108.0
117
+ version: 2.201.0
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - ">="
137
123
  - !ruby/object:Gem::Version
138
- version: 2.108.0
124
+ version: 2.201.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: markdown-tables
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -310,7 +296,7 @@ homepage: https://github.com/lyndsey-ferguson/fastlane-plugin-test_center
310
296
  licenses:
311
297
  - MIT
312
298
  metadata: {}
313
- post_install_message:
299
+ post_install_message:
314
300
  rdoc_options: []
315
301
  require_paths:
316
302
  - lib
@@ -318,15 +304,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
318
304
  requirements:
319
305
  - - ">="
320
306
  - !ruby/object:Gem::Version
321
- version: '0'
307
+ version: '2.6'
322
308
  required_rubygems_version: !ruby/object:Gem::Requirement
323
309
  requirements:
324
310
  - - ">="
325
311
  - !ruby/object:Gem::Version
326
312
  version: '0'
327
313
  requirements: []
328
- rubygems_version: 3.1.2
329
- signing_key:
314
+ rubygems_version: 3.2.32
315
+ signing_key:
330
316
  specification_version: 4
331
317
  summary: Makes testing your iOS app easier
332
318
  test_files: []