class RspecDispatch::Formatter
Public Instance Methods
dump_summary(examples)
click to toggle source
Calls superclass method
# File lib/rspec_dispatch/formatter.rb, line 35 def dump_summary(examples) rspec_data = { duration: examples.duration, example_count: examples.example_count, success_count: examples.example_count.to_i - examples.failure_count.to_i - examples.pending_count.to_i, failure_count: examples.failure_count, pending_count: examples.pending_count } report = RspecDispatch::Report.new(rspec_data) report.monitor_data = @monitor report.deliver super(examples) end
example_failed(notification)
click to toggle source
Calls superclass method
# File lib/rspec_dispatch/formatter.rb, line 25 def example_failed(notification) @monitor.track notification.example super(notification) end
example_passed(notification)
click to toggle source
Calls superclass method
# File lib/rspec_dispatch/formatter.rb, line 15 def example_passed(notification) @monitor.track notification.example super(notification) end
example_pending(notification)
click to toggle source
Calls superclass method
# File lib/rspec_dispatch/formatter.rb, line 20 def example_pending(notification) @monitor.track notification.example super(notification) end
start(example_count)
click to toggle source
# File lib/rspec_dispatch/formatter.rb, line 11 def start(example_count) @monitor = RspecDispatch::Monitor.new end
start_dump(notification)
click to toggle source
Calls superclass method
# File lib/rspec_dispatch/formatter.rb, line 30 def start_dump(notification) super(notification) output.puts end