class Swat::UI::RspecSetup::Formatter

Public Class Methods

new(arg) click to toggle source
Calls superclass method
# File lib/swat/ui/rspec_setup.rb, line 13
def initialize(arg)
  super arg
  @stats_collector = StatsCollector.create
end

Public Instance Methods

example_failed(notification) click to toggle source
# File lib/swat/ui/rspec_setup.rb, line 22
def example_failed(notification)
  @stats_collector.collect_case(notification.example)
end
example_passed(notification) click to toggle source
# File lib/swat/ui/rspec_setup.rb, line 18
def example_passed(notification)
  @stats_collector.collect_case(notification.example)
end
example_started(notification) click to toggle source
# File lib/swat/ui/rspec_setup.rb, line 34
def example_started(notification); end
start(notification) click to toggle source
# File lib/swat/ui/rspec_setup.rb, line 30
def start(notification)
  @stats_collector.collect_started_thread(notification)
end
stop(notification) click to toggle source
# File lib/swat/ui/rspec_setup.rb, line 26
def stop(notification)
  @stats_collector.collect_ended_thread(notification)
end