class Cucumber::Formatter::Progress

The formatter used for --format progress

Constants

CHARS

Attributes

step_mother[R]

Public Class Methods

new(step_mother, path_or_io, options) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 12
def initialize(step_mother, path_or_io, options)
  @step_mother, @io, @options = step_mother, ensure_io(path_or_io, "progress"), options
end

Public Instance Methods

after_feature_element(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 26
def after_feature_element(*args)
  progress(:failed) if @exception_raised
  @exception_raised = false
end
after_features(features) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 16
def after_features(features)
  @io.puts
  @io.puts
  print_summary(features)
end
after_outline_table(outline_table) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 49
def after_outline_table(outline_table)
  @outline_table = nil
end
after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 40
def after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background)
  progress(status)
  @status = status
end
after_steps(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 36
def after_steps(*args)
  @exception_raised = false
end
before_feature_element(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 22
def before_feature_element(*args)
  @exception_raised = false
end
before_outline_table(outline_table) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 45
def before_outline_table(outline_table)
  @outline_table = outline_table
end
before_steps(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 31
def before_steps(*args)
  progress(:failed) if @exception_raised
  @exception_raised = false
end
exception(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 59
def exception(*args)
  @exception_raised = true
end
table_cell_value(value, status) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 53
def table_cell_value(value, status)
  return unless @outline_table
  status ||= @status
  progress(status) unless table_header_cell?(status)
end