Class: RSpec::Core::Formatters::ProgressFormatter
- Inherits:
-
BaseTextFormatter
- Object
- BaseFormatter
- BaseTextFormatter
- RSpec::Core::Formatters::ProgressFormatter
- Defined in:
- lib/rspec/core/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
- #example_failed(example) ⇒ Object
- #example_passed(example) ⇒ Object
- #example_pending(example) ⇒ Object
- #start_dump ⇒ Object
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 BacktraceFormatter
Constructor Details
This class inherits a constructor from RSpec::Core::Formatters::BaseFormatter
Instance Method Details
#example_failed(example) ⇒ Object
18 19 20 21 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 18 def example_failed(example) super(example) output.print failure_color('F') end |
#example_passed(example) ⇒ Object
8 9 10 11 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 8 def example_passed(example) super(example) output.print success_color('.') end |
#example_pending(example) ⇒ Object
13 14 15 16 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 13 def example_pending(example) super(example) output.print pending_color('*') end |
#start_dump ⇒ Object
23 24 25 26 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 23 def start_dump super() output.puts end |