Module: Bacon::TestUnitOutput
- Defined in:
- lib/mac_bacon.rb
Instance Method Summary collapse
- #handle_requirement_begin(description) ⇒ Object
- #handle_requirement_end(error) ⇒ Object
- #handle_specification_begin(name) ⇒ Object
- #handle_specification_end ⇒ Object
- #handle_summary ⇒ Object
Instance Method Details
#handle_requirement_begin(description) ⇒ Object
58 |
# File 'lib/mac_bacon.rb', line 58 def handle_requirement_begin(description) end |
#handle_requirement_end(error) ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/mac_bacon.rb', line 59 def handle_requirement_end(error) if error.empty? print "." else print error[0..0] end end |
#handle_specification_begin(name) ⇒ Object
55 |
# File 'lib/mac_bacon.rb', line 55 def handle_specification_begin(name); end |
#handle_specification_end ⇒ Object
56 |
# File 'lib/mac_bacon.rb', line 56 def handle_specification_end ; end |
#handle_summary ⇒ Object
67 68 69 70 71 72 |
# File 'lib/mac_bacon.rb', line 67 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 |