Class: RSpec::Core::Formatters::BisectDebugFormatter

Inherits:
BisectProgressFormatter show all
Defined in:
lib/rspec/core/formatters/bisect_progress_formatter.rb

Overview

Produces detailed debug output while bisecting. Used when bisect is performed with `–bisect=verbose`. Designed to provide details for us when we need to troubleshoot bisect bugs.

Instance Attribute Summary

Attributes inherited from BaseFormatter

#example_group, #output

Instance Method Summary collapse

Methods inherited from BisectProgressFormatter

#bisect_aborted, #bisect_complete, #bisect_dependency_check_started, #bisect_failed, #bisect_repro_command, #bisect_starting

Methods inherited from BaseTextFormatter

#close, #dump_failures, #dump_pending, #dump_summary, #message, #seed

Methods inherited from BaseFormatter

#close, #example_group_started, #initialize, #start

Constructor Details

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

Instance Method Details

#bisect_dependency_check_failed(_notification) ⇒ Object



105
106
107
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 105

def bisect_dependency_check_failed(_notification)
  output.print "\n - Failure is not order-dependent"
end

#bisect_dependency_check_passed(_notification) ⇒ Object



101
102
103
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 101

def bisect_dependency_check_passed(_notification)
  output.print "\n - Failure appears to be order-dependent"
end

#bisect_individual_run_complete(notification) ⇒ Object



97
98
99
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 97

def bisect_individual_run_complete(notification)
  output.print " (#{Helpers.format_duration(notification.duration)})"
end

#bisect_individual_run_start(notification) ⇒ Object



93
94
95
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 93

def bisect_individual_run_start(notification)
  output.print "\n - Running: #{notification.command}"
end

#bisect_original_run_complete(notification) ⇒ Object



86
87
88
89
90
91
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 86

def bisect_original_run_complete(notification)
  output.puts " (#{Helpers.format_duration(notification.duration)})"

  output.puts " - #{describe_ids 'Failing examples', notification.failed_example_ids}"
  output.puts " - #{describe_ids 'Non-failing examples', notification.non_failing_example_ids}"
end

#bisect_round_detected_multiple_culprits(_notification) ⇒ Object



118
119
120
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 118

def bisect_round_detected_multiple_culprits(_notification)
  output.print "\n - Multiple culprits detected - splitting candidates"
end

#bisect_round_ignoring_ids(notification) ⇒ Object



113
114
115
116
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 113

def bisect_round_ignoring_ids(notification)
  output.print "\n - #{describe_ids 'Examples we can safely ignore', notification.ids_to_ignore}"
  output.print "\n - #{describe_ids 'Remaining non-failing examples', notification.remaining_ids}"
end

#bisect_round_started(notification) ⇒ Object



109
110
111
# File 'lib/rspec/core/formatters/bisect_progress_formatter.rb', line 109

def bisect_round_started(notification)
  super(notification, false)
end