Class: GreenPepper::ConsoleWriter
- Inherits:
-
Object
- Object
- GreenPepper::ConsoleWriter
- Defined in:
- lib/greenpepper/writer/consolewriter.rb
Instance Method Summary collapse
-
#initialize(results) ⇒ ConsoleWriter
constructor
A new instance of ConsoleWriter.
- #output ⇒ Object
Constructor Details
#initialize(results) ⇒ ConsoleWriter
Returns a new instance of ConsoleWriter.
10 11 12 |
# File 'lib/greenpepper/writer/consolewriter.rb', line 10 def initialize results @results = results end |
Instance Method Details
#output ⇒ Object
14 15 16 17 18 19 |
# File 'lib/greenpepper/writer/consolewriter.rb', line 14 def output results = HtmlTableExecutionResults.get_all_results(@results) total = results.successes + results.failures + results.ignored + results.errors "#{total} tests: #{results.successes} right, #{results.failures}" + " wrong, #{results.ignored} ignored, #{results.errors} exception(s)" end |