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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04f36f132b46b97643fd6f049f797029b6cbcb98
4
- data.tar.gz: 9c7267483f1899e756d6f3a517f4b1002836268c
3
+ metadata.gz: 24efb8d6deca323110a76df060c328cb8a63bee6
4
+ data.tar.gz: 75f28cc87715b9dcbcdae2f18d95d0276a9d8003
5
5
  SHA512:
6
- metadata.gz: c631dc9874a6aee7fe1d56f09014744db65f99ebe64b84fe8c050d286d61e4f780b619af7a31963babd2ba3515c90622365c2d0dc3c42e09511aac7c47d6b5de
7
- data.tar.gz: f5993d62e3fb6644dcca5c95715f0e1e1e1fc16364f1f276bf4859e2ab7806c41761fd17dfcfd1e64c4dc24637a9d36342dc61ae0c5cb96c3e41f2c88d6610f1
6
+ metadata.gz: b1f052f91c445c6b52bf60696db1036f402bee80c444323895c85e446cfe868c26c3c6ddd0dcfacb36b1f6000404cf73e8359b173a1e4d98de4e0faf0162e4c0
7
+ data.tar.gz: 491d94cc5462a9299376e8d125338124fc077bc979b1114ae571b6642beadaf2360104ae5dde0bbeb27283e092165de5ccb042f51b7e7b45edd78b74a36c65e4
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /test_results/
@@ -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?)? " | xcpretty --color": ""
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
- if out
51
- if $options[:verbose]
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
 
@@ -1,3 +1,3 @@
1
1
  module Xctester
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xctester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Schildknecht