xctest_list 1.1.1 → 1.1.2

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 +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d30d77f0b8ae324ef87fedfc67f4eb2a4318614e
4
- data.tar.gz: 4c754fe3ac7b4c3b2b62b3c5f0e148e7d3d43ec6
3
+ metadata.gz: 423d13fa284630582bc84c49b87ebfd3c9f806c6
4
+ data.tar.gz: 912ee0fafeb1c059704f2f913989c3bec4b52694
5
5
  SHA512:
6
- metadata.gz: b65b18f150b9508f29082310e64bb0562027551861cfbe5a8231bce5590e1c19183776f6ae03d2862491f5f24bd91dc841c89481b877e37cad8ab0676b9e7926
7
- data.tar.gz: 6167a34071da94533cc0e225a9f2bce1a38ca537d67d0adb0d2b2175f1233df052abc013913a2f6c21bb88abd47ad95d1e0eccc3a9ec216822dd211e8d0c514c
6
+ metadata.gz: ddfec54ebaf6b5dda73c7a5dc6b9e8d0ae678ada3cb8e658a1f99cf2fe4136ece87325025435f5837ecaafe0a3302c2360974b0a4ca4ebd28724a0a8797ddd2f
7
+ data.tar.gz: 51928b6f9004d44587c151bcc3e5b48ec1e32c1e8d2d766670202da1bc75ec47ac3b6c75b765ea9afb781829de5bb928f5aaccc7cabdacb4a78058f3b4823b02
data/lib/xctest_list.rb CHANGED
@@ -35,7 +35,7 @@ class XCTestList
35
35
  objc_symbols_command_output_tempfile = Tempfile.new(File.basename(xctest_bundle_path) + "objc")
36
36
  system("nm -U '#{binary_path(xctest_bundle_path)}' > '#{objc_symbols_command_output_tempfile.path}'")
37
37
  tests = []
38
- File.open(objc_symbols_command_output_tempfile.path, 'r').each do |line|
38
+ File.foreach(objc_symbols_command_output_tempfile.path) do |line|
39
39
  if / t -\[(?<testclass>\w+) (?<testmethod>test\w+)\]/ =~ line
40
40
  tests << "#{testclass}/#{testmethod}"
41
41
  end
@@ -53,7 +53,9 @@ class XCTestList
53
53
  swift_symbols_command_output_tempfile = Tempfile.new(File.basename(xctest_bundle_path) + "swift")
54
54
  system("nm -gU '#{binary_path(xctest_bundle_path)}' > '#{swift_symbols_command_output_tempfile.path}'")
55
55
  tests = []
56
- File.open(swift_symbols_command_output_tempfile.path, 'r').each do |line|
56
+ File.foreach(swift_symbols_command_output_tempfile.path) do |line|
57
+ next unless /.*__\w+test\w*/ =~ line
58
+
57
59
  if /.*-\[.*\]/ !~ line && /\w+\.(?<testclass>[^\.]+)\.(?<testmethod>test[^\(]+)/ =~ system("xcrun swift-demangle #{line}")
58
60
  tests << "#{testclass}/#{testmethod}"
59
61
  end
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson