fastlane-plugin-try_scan 0.2.0 → 0.2.1

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: 12d650730323d7c47cfcf510d28238dd5e4864bb4cf169e65139d14c909c33a0
4
- data.tar.gz: c5fceb554ef538e90917244e5ef303b79102289908aedd005e53a1b0a4d056d8
3
+ metadata.gz: 871975db0faec46bf64db099bd0d14829460ff8e542bfa8dffcdd39c6d491854
4
+ data.tar.gz: d518a6bcb11b1b4833d06bad970b8ba5764301be2f7ff9f8d0c3f92621f8c8b5
5
5
  SHA512:
6
- metadata.gz: 0eaea36a94853fb1c5ba8eec440ba5329744c671c1970f6edc36df3db69cadb647e64023b3abfbcdf327b30813d69bef6b70566b2951323f6f0afd98574d9888
7
- data.tar.gz: 3bdfc6aede5d51e8ba1ae4089fc17be7e2cd6aa7ada7e0a09e696dfbf9412e001559d9341a7ee5ad659ae737460c00d7511e5064457416b06035fe3b356708e8
6
+ metadata.gz: 913b1a9891ea9a4fcd066daa4d36c3fd96d0d18e05a0923691c82b32ad320766337a615615bd2bfa6894cc01657b67bb0224732fcfb8d6063c3b3eee92a3ac64
7
+ data.tar.gz: e299cfc1124d6ce7545289eb8620d95b2eaf2da62062ce377c5ef3b86ed9ee613ce244ea5880298a4357f8758f0592a0da7fdf4feed5c55cc79facc4105f9ab2
@@ -200,9 +200,15 @@ module TryScanManager
200
200
  def failed_tests_from_xcresult_report
201
201
  only_testing = []
202
202
  parse_xcresult_report['issues']['testFailureSummaries']['_values'].each do |failed_test|
203
+ is_a_swift_file = failed_test['documentLocationInCreatingWorkspace']['url']['_value'].include?('.swift')
203
204
  suite_name = failed_test['producingTarget']['_value']
204
- test_class = failed_test['testCaseName']['_value'].split('.').first
205
- test_name = failed_test['testCaseName']['_value'].split('.')[1].split('(').first
205
+ if is_a_swift_file
206
+ test_class = failed_test['testCaseName']['_value'].split('.').first
207
+ test_name = failed_test['testCaseName']['_value'].split('.')[1].split('(').first
208
+ else
209
+ test_class = failed_test['testCaseName']['_value'].split('[')[1].split(' ').first
210
+ test_name = failed_test['testCaseName']['_value'].split(' ')[1].split(']').first
211
+ end
206
212
  only_testing << "#{suite_name}/#{test_class}/#{test_name}"
207
213
  end
208
214
  only_testing
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TryScan
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-try_scan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Alter-Pesotskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-13 00:00:00.000000000 Z
11
+ date: 2020-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri