Commit 36213c2a authored by Fabio Pelosin's avatar Fabio Pelosin

[SpecHelper] More refinement for bacon support.

parent 70909db3
...@@ -75,6 +75,11 @@ module Bacon ...@@ -75,6 +75,11 @@ module Bacon
# Overrides the TestUnitOutput to provide colored result output. # Overrides the TestUnitOutput to provide colored result output.
# #
module TestUnitOutput module TestUnitOutput
def handle_specification(name)
print ':'
yield
end
def handle_requirement(description, disabled = false) def handle_requirement(description, disabled = false)
error = yield error = yield
if !error.empty? if !error.empty?
...@@ -93,7 +98,7 @@ module Bacon ...@@ -93,7 +98,7 @@ module Bacon
first_error = '' first_error = ''
error_count = 0 error_count = 0
ErrorLog.lines.each do |s| ErrorLog.lines.each do |s|
error_count += 1 if s.include?('Error:') error_count += 1 if s.include?('Error:') || s.include?('Informative')
first_error << s if error_count <= 1 first_error << s if error_count <= 1
end end
puts "\n#{first_error}" if Backtraces puts "\n#{first_error}" if Backtraces
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment