Class: JasmineLikeFormatter
- Inherits:
-
DottedFormatter
- Object
- DottedFormatter
- JasmineLikeFormatter
- Defined in:
- lib/extensions/mspec/mspec/runner/formatters/rhospecf.rb
Overview
Test results formatter that output spec statistics in Jasmine style Used for command-line spec runners
Instance Attribute Summary
Attributes inherited from DottedFormatter
Instance Method Summary collapse
Methods inherited from DottedFormatter
#abort, #before, #exception, #exception?, #failure?, #initialize, #print, #register
Constructor Details
This class inherits a constructor from DottedFormatter
Instance Method Details
#after(state) ⇒ Object
10 11 12 |
# File 'lib/extensions/mspec/mspec/runner/formatters/rhospecf.rb', line 10 def after(state) # do not put anything outside end |
#finish ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/extensions/mspec/mspec/runner/formatters/rhospecf.rb', line 14 def finish Rho::Log.info("***Total: #{@tally.counter.examples}","APP") Rho::Log.info("***Expectations: #{@tally.counter.expectations}","APP") failed = @tally.counter.failures + @tally.counter.errors passed = @tally.counter.examples - failed Rho::Log.info("***Passed: #{passed}","APP") Rho::Log.info("***Failed: #{failed}","APP") end |