Class: Cucumber::Events::TestStepFinished

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/events/test_step_finished.rb

Overview

Signals that a Core::Test::Step has finished executing

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#event_id, #to_h

Constructor Details

#initialize(test_step, result) ⇒ TestStepFinished

Returns a new instance of TestStepFinished.



19
20
21
22
23
# File 'lib/cucumber/events/test_step_finished.rb', line 19

def initialize(test_step, result)
  @test_step = test_step
  @result = result
  super()
end

Instance Attribute Details

#resultCucumber::Core::Test::Result (readonly)

Returns the result of running the Core::Test::Step.

Returns:

  • (Cucumber::Core::Test::Result)

    the result of running the Core::Test::Step



13
14
15
# File 'lib/cucumber/events/test_step_finished.rb', line 13

def result
  @result
end

#test_stepCucumber::Core::Test::Step (readonly)

Returns the test step that was executed.

Returns:

  • (Cucumber::Core::Test::Step)

    the test step that was executed



10
11
12
# File 'lib/cucumber/events/test_step_finished.rb', line 10

def test_step
  @test_step
end

Class Method Details

.event_idObject



15
16
17
# File 'lib/cucumber/events/test_step_finished.rb', line 15

def self.event_id
  :test_step_finished
end