Module: Bacon::TestUnitOutput
- Defined in:
- lib/bacon.rb
Instance Method Summary collapse
- #handle_requirement(description) ⇒ Object
- #handle_specification(name) ⇒ Object
- #handle_summary ⇒ Object
Instance Method Details
#handle_requirement(description) ⇒ Object
61 62 63 64 65 66 67 68 |
# File 'lib/bacon.rb', line 61 def handle_requirement(description) error = yield if error.empty? print "." else print error[0..0] end end |
#handle_specification(name) ⇒ Object
59 |
# File 'lib/bacon.rb', line 59 def handle_specification(name) yield end |
#handle_summary ⇒ Object
70 71 72 73 74 75 |
# File 'lib/bacon.rb', line 70 def handle_summary puts puts ErrorLog if Backtraces puts "%d tests, %d assertions, %d failures, %d errors" % Counter.values_at(:specifications, :requirements, :failed, :errors) end |