# File lib/cucumber/formatter/rerun.rb, line 8 def initialize(runtime, path_or_io, options) @io = ensure_io(path_or_io) @failures = {} @options = options end
# File lib/cucumber/formatter/rerun.rb, line 14 def after_test_case(test_case, result) return if result.ok?(@options[:strict]) @failures[test_case.location.file] ||= [] @failures[test_case.location.file] << test_case.location.line end
# File lib/cucumber/formatter/rerun.rb, line 20 def done return if @failures.empty? @io.print file_failures.join(' ') end
# File lib/cucumber/formatter/rerun.rb, line 30 def file_failures @failures.map { |file, lines| [file, lines].join(':') } end