Sha256: 8ac2e0142146d5d6e8958844f27e33cb0f0e4d29cd6106c25213072d2aac5efe

Contents?: true

Size: 478 Bytes

Versions: 24

Compression:

Stored size: 478 Bytes

Contents

require 'rspec/core/formatters/progress_formatter'

# essentially a monkey-patch to the ProgressBarFormatter, outputs 
# '== #{example_proxy.description} ==' in the logs before each test.  makes it
# easier to match up tests with the SQL they produce
class LoggingProgressBarFormatter < RSpec::Core::Formatters::ProgressFormatter
  def example_started(example)
    ::Logging.logger['spec'].write(yellow("\n=====<([ #{example.full_description} ])>=====\n"))
    super
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
zk-1.9.5 spec/logging_progress_bar_formatter.rb
zk-1.9.4 spec/logging_progress_bar_formatter.rb
zk-1.9.3 spec/logging_progress_bar_formatter.rb
zk-1.9.2 spec/logging_progress_bar_formatter.rb
zk-1.9.1 spec/logging_progress_bar_formatter.rb
zk-1.9.0 spec/logging_progress_bar_formatter.rb
zk-1.8.0 spec/logging_progress_bar_formatter.rb
zk-1.7.5 spec/logging_progress_bar_formatter.rb
zk-1.7.4 spec/logging_progress_bar_formatter.rb
zk-1.7.3 spec/logging_progress_bar_formatter.rb
zk-1.7.2 spec/logging_progress_bar_formatter.rb
zk-1.7.1 spec/logging_progress_bar_formatter.rb
zk-1.7.0 spec/logging_progress_bar_formatter.rb
zk-1.6.5 spec/logging_progress_bar_formatter.rb
zk-group-0.1.1 spec/logging_progress_bar_formatter.rb
zk-1.6.4 spec/logging_progress_bar_formatter.rb
zk-1.6.3 spec/logging_progress_bar_formatter.rb
zk-1.6.2 spec/logging_progress_bar_formatter.rb
zk-1.6.1 spec/logging_progress_bar_formatter.rb
zk-1.6.0 spec/logging_progress_bar_formatter.rb