The formatter used for --format rerun
This formatter keeps track of all failing features and print out their location. Example:
features/foo.feature:34 features/bar.feature:11:76:81
This formatter is used by AutoTest - it will use the output to decide what to run the next time, simply passing the output string on the command line.
# File lib/cucumber/formatter/rerun.rb, line 42 def after_feature_element(feature_element) if @rerun file, line = *feature_element.file_colon_line.split(':') @file_colon_lines[file] << line @file_names << file end end
features() is never executed at all… ?
# File lib/cucumber/formatter/rerun.rb, line 26 def after_features(features) files = @file_names.uniq.map do |file| lines = @file_colon_lines[file] "#{file}:#{lines.join(':')}" end @io.puts files.join(' ') # Flusing output to rerun tempfile here... @io.flush @io.close end
Generated with the Darkfish Rdoc Generator 2.