Class: Xctracker::StandardOutputReporter
Instance Attribute Summary
#options
Instance Method Summary
collapse
#initialize
Instance Method Details
#report!(executions) ⇒ Object
5
6
7
8
|
# File 'lib/xctracker/reporters/standard_output_reporter.rb', line 5
def report!(executions)
filtered = filter_executions(executions)
puts table_for(filtered)
end
|
#table_for(executions) ⇒ Object
10
11
12
13
14
15
16
17
18
|
# File 'lib/xctracker/reporters/standard_output_reporter.rb', line 10
def table_for(executions)
Terminal::Table.new do |t|
t << ['File', 'Line', 'Method name', 'Time(ms)']
t << :separator
executions.each do |execution|
t << [execution.path, execution.line, execution.method_name, execution.time]
end
end
end
|