class RSpec::Core::Formatters::BisectDebugFormatter

@private Produces detailed debug output while bisecting. Used when bisect is performed while the `DEBUG_RSPEC_BISECT` ENV var is used. Designed to provide details for us when we need to troubleshoot bisect bugs.

Public Instance Methods

bisect_ignoring_ids(notification) click to toggle source
# File lib/rspec/core/formatters/bisect_progress_formatter.rb, line 100
def bisect_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_individual_run_complete(notification) click to toggle source
# File lib/rspec/core/formatters/bisect_progress_formatter.rb, line 87
def bisect_individual_run_complete(notification)
  output.print " (#{Helpers.format_duration(notification.duration)})"
end
bisect_individual_run_start(notification) click to toggle source
# File lib/rspec/core/formatters/bisect_progress_formatter.rb, line 83
def bisect_individual_run_start(notification)
  output.print "\n - Running: #{notification.command}"
end
bisect_original_run_complete(notification) click to toggle source
# File lib/rspec/core/formatters/bisect_progress_formatter.rb, line 76
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_finished(notification) click to toggle source
# File lib/rspec/core/formatters/bisect_progress_formatter.rb, line 95
def bisect_round_finished(notification)
  output.print "\n - Round finished"
  super
end
bisect_round_started(notification) click to toggle source
# File lib/rspec/core/formatters/bisect_progress_formatter.rb, line 91
def bisect_round_started(notification)
  super(notification, false)
end

Private Instance Methods

describe_ids(description, ids) click to toggle source
# File lib/rspec/core/formatters/bisect_progress_formatter.rb, line 107
def describe_ids(description, ids)
  organized_ids = Formatters::Helpers.organize_ids(ids)
  formatted_ids = organized_ids.map { |id| "    - #{id}" }.join("\n")
  "#{description} (#{ids.size}):\n#{formatted_ids}"
end