xctester 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 +4 -4
- data/.gitignore +1 -0
- data/lib/xctester.rb +10 -11
- data/lib/xctester/version.rb +1 -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: 24efb8d6deca323110a76df060c328cb8a63bee6
|
4
|
+
data.tar.gz: 75f28cc87715b9dcbcdae2f18d95d0276a9d8003
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f052f91c445c6b52bf60696db1036f402bee80c444323895c85e446cfe868c26c3c6ddd0dcfacb36b1f6000404cf73e8359b173a1e4d98de4e0faf0162e4c0
|
7
|
+
data.tar.gz: 491d94cc5462a9299376e8d125338124fc077bc979b1114ae571b6642beadaf2360104ae5dde0bbeb27283e092165de5ccb042f51b7e7b45edd78b74a36c65e4
|
data/.gitignore
CHANGED
data/lib/xctester.rb
CHANGED
@@ -40,25 +40,24 @@ module Xctester
|
|
40
40
|
time = Benchmark.measure {
|
41
41
|
proj = (File.extname($options[:project]) == ".xcworkspace")? "-workspace" : "-project"
|
42
42
|
cmd = "xcodebuild #{proj} #{$options[:project]} -scheme '#{$options[:scheme]}' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.2' test"
|
43
|
-
cmd += (Gem::Specification::find_all_by_name('xcpretty').any?)? "
|
43
|
+
cmd += (Gem::Specification::find_all_by_name('xcpretty').any?)? "| xcpretty --color && exit ${PIPESTATUS[0]}": ""
|
44
44
|
output = ""
|
45
45
|
|
46
46
|
status = POpen4::popen4(cmd) do |stdout, stderr, stdin, pid|
|
47
47
|
puts " (#{pid})".green
|
48
48
|
|
49
49
|
while out = stdout.gets || err = stderr.gets do
|
50
|
-
|
51
|
-
|
52
|
-
puts "#{out}"
|
53
|
-
end
|
54
|
-
output += out
|
55
|
-
end
|
56
|
-
|
57
|
-
if err
|
50
|
+
if err
|
51
|
+
if $options[:verbose]
|
58
52
|
puts "#{err}".red
|
59
|
-
output += err
|
60
53
|
end
|
61
|
-
|
54
|
+
output += err
|
55
|
+
elsif out
|
56
|
+
if $options[:verbose]
|
57
|
+
puts "#{out}"
|
58
|
+
end
|
59
|
+
output += out
|
60
|
+
end
|
62
61
|
end
|
63
62
|
end
|
64
63
|
|
data/lib/xctester/version.rb
CHANGED