Parent

Files

Class/Module Index [+]

Quicksearch

Cucumber::Formatter::Progress

The formatter used for --format progress

Constants

CHARS

Attributes

runtime[R]

Public Class Methods

new(runtime, path_or_io, options) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 12
def initialize(runtime, path_or_io, options)
  @runtime, @io, @options = runtime, 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 30
def after_feature_element(*args)
  progress(:failed) if (defined? @exception_raised) and (@exception_raised)
  @exception_raised = false
end
after_features(features) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 20
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 53
def after_outline_table(outline_table)
  @outline_table = nil
end
after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 44
def after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line)
  progress(status)
  @status = status
end
after_steps(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 40
def after_steps(*args)
  @exception_raised = false
end
before_feature_element(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 26
def before_feature_element(*args)
  @exception_raised = false
end
before_features(features) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 16
def before_features(features)
  print_profile_information
end
before_outline_table(outline_table) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 49
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 35
def before_steps(*args)
  progress(:failed) if (defined? @exception_raised) and (@exception_raised)
  @exception_raised = false
end
exception(*args) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 63
def exception(*args)
  @exception_raised = true
end
table_cell_value(value, status) click to toggle source
# File lib/cucumber/formatter/progress.rb, line 57
def table_cell_value(value, status)
  return unless @outline_table
  status ||= @status
  progress(status) unless table_header_cell?(status)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.