Class: Micronaut::Formatters::ProgressFormatter
- Inherits:
-
BaseTextFormatter
- Object
- BaseFormatter
- BaseTextFormatter
- Micronaut::Formatters::ProgressFormatter
- Defined in:
- lib/micronaut/formatters/progress_formatter.rb
Instance Attribute Summary
Attributes inherited from BaseFormatter
#behaviour, #duration, #example_count, #total_example_failed, #total_example_pending
Instance Method Summary collapse
- #example_failed(example, exception) ⇒ Object
- #example_passed(example) ⇒ Object
- #example_pending(example, message) ⇒ Object
- #method_missing(sym, *args) ⇒ Object
- #start_dump(duration) ⇒ Object
Methods inherited from BaseTextFormatter
#close, #colorise, #dump_failures, #dump_pending, #dump_summary, #example_started
Methods inherited from BaseFormatter
#add_behaviour, #close, #color_enabled?, #configuration, #dump_failures, #dump_pending, #dump_summary, #example_profiling_info, #example_started, #failed_examples, #format_backtrace, #initialize, #output, #pending_examples, #profile_examples?, #start, #trace, #trace_override_flag
Constructor Details
This class inherits a constructor from Micronaut::Formatters::BaseFormatter
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
30 31 32 |
# File 'lib/micronaut/formatters/progress_formatter.rb', line 30 def method_missing(sym, *args) # ignore end |
Instance Method Details
#example_failed(example, exception) ⇒ Object
6 7 8 9 10 |
# File 'lib/micronaut/formatters/progress_formatter.rb', line 6 def example_failed(example, exception) super output.print colorise('F', exception) output.flush end |
#example_passed(example) ⇒ Object
12 13 14 15 16 |
# File 'lib/micronaut/formatters/progress_formatter.rb', line 12 def example_passed(example) super output.print green('.') output.flush end |
#example_pending(example, message) ⇒ Object
18 19 20 21 22 |
# File 'lib/micronaut/formatters/progress_formatter.rb', line 18 def example_pending(example, ) super output.print yellow('*') output.flush end |
#start_dump(duration) ⇒ Object
24 25 26 27 28 |
# File 'lib/micronaut/formatters/progress_formatter.rb', line 24 def start_dump(duration) super output.puts output.flush end |