class Fivemat::Cucumber3
Public Instance Methods
on_test_case_started(event)
click to toggle source
Calls superclass method
# File lib/fivemat/cucumber3.rb, line 7 def on_test_case_started(event) super feature = event.test_case.feature unless same_feature_as_previous_test_case?(feature) after_feature unless @current_feature.nil? before_feature(feature) end end
on_test_run_finished(_event)
click to toggle source
# File lib/fivemat/cucumber3.rb, line 17 def on_test_run_finished(_event) after_feature after_suite end
Private Instance Methods
after_feature()
click to toggle source
# File lib/fivemat/cucumber3.rb, line 31 def after_feature print_elapsed_time @io, @start_time @io.puts @io.flush print_elements(@pending_step_matches, :pending, 'steps') print_elements(@failed_results, :failed, 'steps') @pending_step_matches = [] @failed_results = [] end
after_suite()
click to toggle source
# File lib/fivemat/cucumber3.rb, line 43 def after_suite @io.puts print_summary end
before_feature(feature)
click to toggle source
# File lib/fivemat/cucumber3.rb, line 24 def before_feature(feature) @io.print "#{feature} " @io.flush @current_feature = feature @start_time = Time.now end
same_feature_as_previous_test_case?(feature)
click to toggle source
# File lib/fivemat/cucumber3.rb, line 48 def same_feature_as_previous_test_case?(feature) @current_feature && @current_feature.location == feature.location end