Class: RSpec::Core::Formatters::ProgressFormatter

Inherits:
BaseTextFormatter show all
Defined in:
lib/rspec/legacy_formatters/progress_formatter.rb

Constant Summary

Constants inherited from BaseTextFormatter

BaseTextFormatter::VT100_COLORS, BaseTextFormatter::VT100_COLOR_CODES

Constants included from Helpers

Helpers::DEFAULT_PRECISION, Helpers::SUB_SECOND_PRECISION

Instance Attribute Summary

Attributes inherited from BaseFormatter

#duration, #example_count, #example_group, #examples, #failed_examples, #failure_count, #output, #pending_count, #pending_examples

Instance Method Summary collapse

Methods inherited from BaseTextFormatter

#close, #color_code_for, #colorise_summary, #colorize, #dump_commands_to_rerun_failed_examples, #dump_failures, #dump_pending, #dump_profile, #dump_profile_slowest_example_groups, #dump_profile_slowest_examples, #dump_summary, #message, #seed, #summary_line

Methods inherited from BaseFormatter

#close, #dump_failures, #dump_pending, #dump_summary, #example_group_finished, #example_group_started, #example_started, #format_backtrace, #initialize, #message, #start, #stop

Methods included from Helpers

#format_duration, #format_seconds, #pluralize, #strip_trailing_zeroes

Methods included from LegacyBacktraceFormatter

#format_backtrace

Constructor Details

This class inherits a constructor from RSpec::Core::Formatters::BaseFormatter

Instance Method Details

#example_failed(example) ⇒ void



19
20
21
22
# File 'lib/rspec/legacy_formatters/progress_formatter.rb', line 19

def example_failed(example)
  super(example)
  output.print failure_color('F')
end

#example_passed(example) ⇒ void



9
10
11
12
# File 'lib/rspec/legacy_formatters/progress_formatter.rb', line 9

def example_passed(example)
  super(example)
  output.print success_color('.')
end

#example_pending(example) ⇒ void



14
15
16
17
# File 'lib/rspec/legacy_formatters/progress_formatter.rb', line 14

def example_pending(example)
  super(example)
  output.print pending_color('*')
end

#start_dumpvoid



24
25
26
27
# File 'lib/rspec/legacy_formatters/progress_formatter.rb', line 24

def start_dump
  super()
  output.puts
end