def start(notification)
progress_bar_options = DEFAULT_PROGRESS_BAR_OPTIONS.
merge(:throttle_rate => continuous_integration? ? 1.0 : nil).
merge(configuration.fuubar_progress_bar_options).
merge(:total => notification.count,
:output => output,
:autostart => false)
self.progress = ProgressBar.create(progress_bar_options)
self.passed_count = 0
self.pending_count = 0
self.failed_count = 0
self.example_tick_thread = start_tick_thread(notification)
if Object.const_defined?('Pry')
Pry.
config.
hooks.
add_hook(:when_started, :fuubar_kill_refresh) do |_target, _opt, _|
example_tick_thread.kill
end
end
super
with_current_color { progress.start }
end