Class: Cucumber::Core::Events::TestCaseFinished

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

Overview

Signals that a Test::Case 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_case, result) ⇒ TestCaseFinished

Returns a new instance of TestCaseFinished.



20
21
22
23
24
# File 'lib/cucumber/core/events/test_case_finished.rb', line 20

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

Instance Attribute Details

#resultTest::Result (readonly)

Returns the result of running the Test::Step.

Returns:



14
15
16
# File 'lib/cucumber/core/events/test_case_finished.rb', line 14

def result
  @result
end

#test_caseTest::Case (readonly)

Returns that was executed.

Returns:



11
12
13
# File 'lib/cucumber/core/events/test_case_finished.rb', line 11

def test_case
  @test_case
end

Class Method Details

.event_idObject



16
17
18
# File 'lib/cucumber/core/events/test_case_finished.rb', line 16

def self.event_id
  :test_case_finished
end