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.
- checksums.yaml +4 -4
- data/lib/xctest_list.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 423d13fa284630582bc84c49b87ebfd3c9f806c6
|
4
|
+
data.tar.gz: 912ee0fafeb1c059704f2f913989c3bec4b52694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|