Parent

Included Modules

Class Index [+]

Quicksearch

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
12:       def initialize(step_mother, path_or_io, options)
13:         @step_mother, @io, @options = step_mother, ensure_io(path_or_io, "progress"), options
14:       end

Public Instance Methods

after_feature_element(*args) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 26
26:       def after_feature_element(*args)
27:         progress(:failed) if @exception_raised
28:         @exception_raised = false
29:       end
after_features(features) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 16
16:       def after_features(features)
17:         @io.puts
18:         @io.puts
19:         print_summary(features)
20:       end
after_outline_table(outline_table) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 49
49:       def after_outline_table(outline_table)
50:         @outline_table = nil
51:       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
40:       def after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background)
41:         progress(status)
42:         @status = status
43:       end
after_steps(*args) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 36
36:       def after_steps(*args)
37:         @exception_raised = false
38:       end
before_feature_element(*args) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 22
22:       def before_feature_element(*args)
23:         @exception_raised = false
24:       end
before_outline_table(outline_table) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 45
45:       def before_outline_table(outline_table)
46:         @outline_table = outline_table
47:       end
before_steps(*args) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 31
31:       def before_steps(*args)
32:         progress(:failed) if @exception_raised
33:         @exception_raised = false
34:       end
exception(*args) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 59
59:       def exception(*args)
60:         @exception_raised = true
61:       end
table_cell_value(value, status) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 53
53:       def table_cell_value(value, status)
54:         return unless @outline_table
55:         status ||= @status
56:         progress(status) unless table_header_cell?(status)
57:       end

Private Instance Methods

progress(status) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 81
81:       def progress(status)
82:         char = CHARS[status]
83:         @io.print(format_string(char, status))
84:         @io.flush
85:       end
table_header_cell?(status) click to toggle source
    # File lib/cucumber/formatter/progress.rb, line 87
87:       def table_header_cell?(status)
88:         status == :skipped_param
89:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.