lib/cucumber/formatter/progress.rb in cucumber-2.0.0.rc.3 vs lib/cucumber/formatter/progress.rb in cucumber-2.0.0.rc.4
- old
+ new
@@ -9,10 +9,12 @@
include Io
attr_reader :runtime
def initialize(runtime, path_or_io, options)
@runtime, @io, @options = runtime, ensure_io(path_or_io, "progress"), options
+ @previous_step_keyword = nil
+ @snippets_input = []
end
def before_features(features)
print_profile_information
end
@@ -60,9 +62,17 @@
progress(status) unless table_header_cell?(status)
end
def exception(*args)
@exception_raised = true
+ end
+
+ def before_test_case(test_case)
+ @previous_step_keyword = nil
+ end
+
+ def after_test_step(test_step, result)
+ collect_snippet_data(test_step, result)
end
private
def print_summary(features)