Class: Tunit::SummaryReporter

Inherits:
Reporter
  • Object
show all
Defined in:
lib/tunit/summary_reporter.rb

Constant Summary collapse

SKIP_MSG =
"\n\nYou have skipped tests. Run with --verbose for details."

Instance Attribute Summary

Attributes inherited from Reporter

#assertions, #count, #errors, #failures, #io, #options, #results, #skips, #start_time, #total_time

Instance Method Summary collapse

Methods inherited from Reporter

#initialize, #passed?, #record

Constructor Details

This class inherits a constructor from Tunit::Reporter

Instance Method Details

#reportObject



16
17
18
19
20
21
22
23
24
# File 'lib/tunit/summary_reporter.rb', line 16

def report
  super

  io.puts unless options[:verbose]
  io.puts
  io.puts statistics
  io.puts aggregated_results
  io.puts summary
end

#startObject



7
8
9
10
11
12
13
14
# File 'lib/tunit/summary_reporter.rb', line 7

def start
  super

  io.puts "Run options: #{options.inspect}"
  io.puts
  io.puts "# Running:"
  io.puts
end