Method: RSpec::Core::Formatters::BaseFormatter#start

Defined in:
lib/rspec/core/formatters/base_formatter.rb

#start(example_count) ⇒ Object

This method is invoked before any examples are run, right after they have all been collected. This can be useful for special formatters that need to provide progress on feedback (graphical ones)

This will only be invoked once, and the next one to be invoked is #example_group_started


37
38
39
40
# File 'lib/rspec/core/formatters/base_formatter.rb', line 37

def start(example_count)
  start_sync_output
  @example_count = example_count
end