Module: Bacon::TestUnitOutput

Defined in:
lib/bacon.rb

Instance Method Summary collapse

Instance Method Details

#handle_requirement(description) ⇒ Object



66
67
68
69
70
71
72
73
# File 'lib/bacon.rb', line 66

def handle_requirement(description)
  error = yield
  if error.empty?
    print "."
  else
    print error[0..0]
  end
end

#handle_specification(name) ⇒ Object



64
# File 'lib/bacon.rb', line 64

def handle_specification(name)  yield  end

#handle_summaryObject



75
76
77
78
79
80
# File 'lib/bacon.rb', line 75

def handle_summary
  puts "", "Finished in #{Time.now - @timer} seconds."
  puts ErrorLog  if Backtraces
  puts "%d tests, %d assertions, %d failures, %d errors" %
    Counter.values_at(:specifications, :requirements, :failed, :errors)
end