Class: ParallelTests::RSpec::VerboseLogger
- Inherits:
-
RSpec::Core::Formatters::BaseTextFormatter
- Object
- RSpec::Core::Formatters::BaseTextFormatter
- ParallelTests::RSpec::VerboseLogger
- Defined in:
- lib/parallel_tests/rspec/verbose_logger.rb
Instance Method Summary collapse
- #example_failed(_failure) ⇒ Object
- #example_group_finished(_notification) ⇒ Object
- #example_group_started(notification) ⇒ Object
- #example_passed(_passed) ⇒ Object
- #example_pending(_pending) ⇒ Object
- #example_started(notification) ⇒ Object
-
#initialize(output) ⇒ VerboseLogger
constructor
A new instance of VerboseLogger.
Constructor Details
#initialize(output) ⇒ VerboseLogger
Returns a new instance of VerboseLogger.
17 18 19 20 |
# File 'lib/parallel_tests/rspec/verbose_logger.rb', line 17 def initialize(output) super @line = [] end |
Instance Method Details
#example_failed(_failure) ⇒ Object
45 46 47 48 |
# File 'lib/parallel_tests/rspec/verbose_logger.rb', line 45 def example_failed(_failure) output_formatted_line('FAILED', :failure) @line.pop end |
#example_group_finished(_notification) ⇒ Object
26 27 28 |
# File 'lib/parallel_tests/rspec/verbose_logger.rb', line 26 def example_group_finished(_notification) @line.pop end |
#example_group_started(notification) ⇒ Object
22 23 24 |
# File 'lib/parallel_tests/rspec/verbose_logger.rb', line 22 def example_group_started(notification) @line.push(notification.group.description) end |
#example_passed(_passed) ⇒ Object
35 36 37 38 |
# File 'lib/parallel_tests/rspec/verbose_logger.rb', line 35 def example_passed(_passed) output_formatted_line('PASSED', :success) @line.pop end |
#example_pending(_pending) ⇒ Object
40 41 42 43 |
# File 'lib/parallel_tests/rspec/verbose_logger.rb', line 40 def example_pending(_pending) output_formatted_line('PENDING', :pending) @line.pop end |
#example_started(notification) ⇒ Object
30 31 32 33 |
# File 'lib/parallel_tests/rspec/verbose_logger.rb', line 30 def example_started(notification) @line.push(notification.example.description) output_formatted_line('STARTED', :yellow) end |