class Cucumber::Formatter::Rerun
def after_test_case(test_case, result)
def after_test_case(test_case, result) return if result.passed? @failures[test_case.location.file] ||= [] @failures[test_case.location.file] << test_case.location.line end
def done
def done return if @failures.empty? @io.print file_failures.join(' ') end
def file_failures
def file_failures @failures.map { |file, lines| [file, lines].join(':') } end
def initialize(runtime, path_or_io, options)
def initialize(runtime, path_or_io, options) @io = ensure_io(path_or_io, "rerun") @failures = {} end