Module: MotionSpec::TestUnitOutput
- Defined in:
- lib/motion-spec/output/test_unit.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
7 |
# File 'lib/motion-spec/output/test_unit.rb', line 7 def handle_requirement_begin(description); end |
#handle_requirement_end(error) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/motion-spec/output/test_unit.rb', line 9 def handle_requirement_end(error) if error.empty? print '.' else print error[0..0] end end |
#handle_specification_begin(name) ⇒ Object
4 |
# File 'lib/motion-spec/output/test_unit.rb', line 4 def handle_specification_begin(name); end |
#handle_specification_end ⇒ Object
5 |
# File 'lib/motion-spec/output/test_unit.rb', line 5 def handle_specification_end; end |
#handle_summary ⇒ Object
17 18 19 20 21 22 |
# File 'lib/motion-spec/output/test_unit.rb', line 17 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 |