ocrunner 0.3.1 → 0.3.2
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.
- data/VERSION +1 -1
- data/lib/ocrunner/test_runner.rb +11 -6
- data/ocrunner.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/ocrunner/test_runner.rb
CHANGED
@@ -43,7 +43,7 @@ module OCRunner
|
|
43
43
|
puts "ocrunner started. control-c to exit, control-\\ to toggle verbosity\n\n"
|
44
44
|
|
45
45
|
execute @command do |line|
|
46
|
-
@log << line
|
46
|
+
@log << line unless line =~ /setenv/
|
47
47
|
process_console_output(line)
|
48
48
|
$stdout.flush
|
49
49
|
end
|
@@ -100,10 +100,10 @@ module OCRunner
|
|
100
100
|
|
101
101
|
if @options[:oclog]
|
102
102
|
if line.include?("\033\[35m")
|
103
|
-
line =~
|
103
|
+
line =~ /[\-|\+](\[.+\]):(\d+):(.+):/
|
104
104
|
out blue("#{$1} on line #{$2} of #{clean_path($3)}:")
|
105
105
|
out line.slice(line.index("\033\[35m")..-1)
|
106
|
-
@debug_output = true
|
106
|
+
@debug_output = true unless line.include?("\033[0m")
|
107
107
|
return
|
108
108
|
end
|
109
109
|
|
@@ -134,10 +134,8 @@ module OCRunner
|
|
134
134
|
|
135
135
|
# test failure
|
136
136
|
if line =~ /(.+\.m):(\d+): error: -\[(.+) (.+)\] :(?: (.+):?)?/
|
137
|
-
@current_case.fail!
|
138
137
|
@current_case.errors << TestError.new($1, $2, $5)
|
139
|
-
|
140
|
-
print red('.')
|
138
|
+
test_failure_occurred!
|
141
139
|
end
|
142
140
|
|
143
141
|
# start test suite
|
@@ -197,11 +195,18 @@ module OCRunner
|
|
197
195
|
@compilation_error_occurred = true
|
198
196
|
end
|
199
197
|
|
198
|
+
def test_failure_occurred!
|
199
|
+
print red('.') if @current_case.passed? # only print a dot for the case's first failure
|
200
|
+
@current_case.fail!
|
201
|
+
@passed = false
|
202
|
+
end
|
203
|
+
|
200
204
|
def out(line = '')
|
201
205
|
@output << line.rstrip
|
202
206
|
end
|
203
207
|
|
204
208
|
def clean_path(path)
|
209
|
+
return 'unknown' if path.nil?
|
205
210
|
path.gsub(@current_directory + '/', '')
|
206
211
|
end
|
207
212
|
|
data/ocrunner.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ocrunner}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jim Benton"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-23}
|
13
13
|
s.default_executable = %q{ocrunner}
|
14
14
|
s.description = %q{Provides pretty console output for running OCUnit tests with xcodebuilder from the command line}
|
15
15
|
s.email = %q{jim@autonomousmachine.com}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 2
|
9
|
+
version: 0.3.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jim Benton
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-23 00:00:00 -05:00
|
18
18
|
default_executable: ocrunner
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|