Class: Cucumber::Core::Test::Runner::RunningTestCase::Status::Failing

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/core/test/runner.rb

Direct Known Subclasses

Skipping

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Cucumber::Core::Test::Runner::RunningTestCase::Status::Base

Instance Method Details

#execute(test_step, monitor) ⇒ Object



131
132
133
134
135
136
137
138
# File 'lib/cucumber/core/test/runner.rb', line 131

def execute(test_step, monitor)
  result = test_step.skip(monitor.result)
  if result.undefined?
    result = result.with_message(%(Undefined step: "#{test_step.text}"))
    result = result.with_appended_backtrace(test_step)
  end
  result
end

#result(duration) ⇒ Object



140
141
142
# File 'lib/cucumber/core/test/runner.rb', line 140

def result(duration)
  step_result.with_duration(duration)
end