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
59 |
# File 'lib/mac_bacon.rb', line 59 def handle_requirement_begin(description) end |
#handle_requirement_end(error) ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/mac_bacon.rb', line 60 def handle_requirement_end(error) if error.empty? print "." else print error[0..0] end end |
#handle_specification_begin(name) ⇒ Object
56 |
# File 'lib/mac_bacon.rb', line 56 def handle_specification_begin(name); end |
#handle_specification_end ⇒ Object
57 |
# File 'lib/mac_bacon.rb', line 57 def handle_specification_end ; end |
#handle_summary ⇒ Object
68 69 70 71 72 73 |
# File 'lib/mac_bacon.rb', line 68 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 |