Class: Fivemat::Cucumber3

Inherits:
Cucumber::Formatter::Progress
  • Object
show all
Includes:
ElapsedTime
Defined in:
lib/fivemat/cucumber3.rb

Instance Method Summary collapse

Methods included from ElapsedTime

#print_elapsed_time

Instance Method Details

#on_test_case_started(event) ⇒ Object



7
8
9
10
11
12
13
14
15
# 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) ⇒ Object



17
18
19
20
# File 'lib/fivemat/cucumber3.rb', line 17

def on_test_run_finished(_event)
  after_feature
  after_suite
end