xctest_list 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/xctest_list.rb +2 -1
- 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: cd5d11c198b924ffc15fe1750b73aa2b35434090
|
|
4
|
+
data.tar.gz: f4d34bbf70446fbc5abd347d68c16760a048b164
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|