class Cucumber::Formatter::RerunDump

Works like rerun but just outputs file location and line number Each new test is output to a new line

Public Class Methods

new(_runtime, path_or_io, options) click to toggle source
# File lib/cucumber/formatter/rerun_dump.rb, line 10
def initialize(_runtime, path_or_io, options)
  @io = ensure_io(path_or_io)
  @results = []
  @options = options
end

Public Instance Methods

after_test_case(test_case, _result) click to toggle source
# File lib/cucumber/formatter/rerun_dump.rb, line 16
def after_test_case(test_case, _result)
  @results << [test_case.location.file, test_case.location.line]
end
done() click to toggle source
# File lib/cucumber/formatter/rerun_dump.rb, line 20
def done
  return if @results.empty?
  @io.print file_failures.join("\n")
end

Private Instance Methods

file_failures() click to toggle source
# File lib/cucumber/formatter/rerun_dump.rb, line 31
def file_failures
  @results.map { |file, lines| [file, lines].join(':') }
end