Class: Cucumber::Formatter::Progress
Overview
The formatter used for --format progress
Direct Known Subclasses
Usage
Constant Summary
Constants included
from Console
Console::FORMATS
Constants included
from ANSIColor
ANSIColor::ALIASES
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Console
#announce, #format_step, #format_string, #print_counts, #print_elements, #print_exception, #print_passing_wip, #print_snippets, #print_stats, #print_steps, #print_tag_limit_warnings, #record_tag_occurrences
Methods included from ANSIColor
define_grey, define_real_grey, #grey
Methods included from Duration
#format_duration
Constructor Details
#initialize(step_mother, io, options) ⇒ Progress
Returns a new instance of Progress.
10
11
12
|
# File 'lib/cucumber/formatter/progress.rb', line 10
def initialize(step_mother, io, options)
@step_mother, @io, @options = step_mother, io, options
end
|
Instance Attribute Details
#step_mother ⇒ Object
Returns the value of attribute step_mother.
8
9
10
|
# File 'lib/cucumber/formatter/progress.rb', line 8
def step_mother
@step_mother
end
|
Instance Method Details
#after_features(features) ⇒ Object
14
15
16
17
18
|
# File 'lib/cucumber/formatter/progress.rb', line 14
def after_features(features)
@io.puts
@io.puts
print_summary(features)
end
|
#after_outline_table(outline_table) ⇒ Object
33
34
35
|
# File 'lib/cucumber/formatter/progress.rb', line 33
def after_outline_table(outline_table)
@outline_table = nil
end
|
#after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background) ⇒ Object
24
25
26
27
|
# File 'lib/cucumber/formatter/progress.rb', line 24
def after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background)
progress(status)
@status = status
end
|
#before_feature_element(feature_element) ⇒ Object
20
21
22
|
# File 'lib/cucumber/formatter/progress.rb', line 20
def before_feature_element(feature_element)
record_tag_occurrences(feature_element, @options)
end
|
#before_outline_table(outline_table) ⇒ Object
29
30
31
|
# File 'lib/cucumber/formatter/progress.rb', line 29
def before_outline_table(outline_table)
@outline_table = outline_table
end
|
#table_cell_value(value, status) ⇒ Object
37
38
39
40
41
|
# File 'lib/cucumber/formatter/progress.rb', line 37
def table_cell_value(value, status)
return unless @outline_table
status ||= @status
progress(status) unless (status)
end
|