xctest_list 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xctest_list.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b135528c2930823c1b2b1c80114718e6e592ef03
4
- data.tar.gz: c83baaf81dbc8711c4ee88783ae97adff34ecc4e
3
+ metadata.gz: cd5d11c198b924ffc15fe1750b73aa2b35434090
4
+ data.tar.gz: f4d34bbf70446fbc5abd347d68c16760a048b164
5
5
  SHA512:
6
- metadata.gz: 3d490fa698a812624133584bf815898d043ecb95b529f581de5689adf149ea8e503b0e8f56a4a525f7c8f4899fca5cd6f816af0760c7ab4e7896e43bb461e1da
7
- data.tar.gz: 5a434f60320cc64d6297825239c02ea484b8207f09b564395c06180b5bff1f1c44cc16adc800f5ec6e2dde82d0485c970e084388de27e7fd0124a373e8243a13
6
+ metadata.gz: 335584096da0ead1fcae6fdb10b68b208e845fd514c34908262ad03f31eced3c32286d3f7a2e23d3cf94f12f44be9b9c5123063ef5233aa77bad179e0ce67af8
7
+ data.tar.gz: e5d83fda40e241b9550a0c3c265fb6133f8972d091c6437ed2a229f67d1edb471c8d3954b1301a9b57463644d9269d0652cc8d5ebead569eb6674770f2e84ba2
data/lib/xctest_list.rb CHANGED
@@ -55,7 +55,8 @@ class XCTestList
55
55
  # find the Swift symbols in the bundle's binary
56
56
  def self.swift_tests(xctest_bundle_path)
57
57
  swift_symbols_command_output_tempfile = Tempfile.new(File.basename(xctest_bundle_path) + "swift")
58
- system("nm -gU '#{binary_path(xctest_bundle_path)}' > '#{swift_symbols_command_output_tempfile.path}'")
58
+ swift_symbol_dump_command = "nm -gU '#{binary_path(xctest_bundle_path)}' | cut -d' ' -f3 | xargs -s 131072 xcrun swift-demangle | cut -d' ' -f3 | grep -e '[\\.|_]'test"
59
+ system("#{swift_symbol_dump_command} > '#{swift_symbols_command_output_tempfile.path}'")
59
60
  tests = []
60
61
  File.foreach(swift_symbols_command_output_tempfile.path) do |line|
61
62
  next unless /.*__\w+test\w*/ =~ line
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xctest_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson