Class: Cucumber::Events::TestCaseFinished

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

Overview

Event fired when a Test::Case is created from a Pickle

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.



17
18
19
20
21
# File 'lib/cucumber/events/test_case_finished.rb', line 17

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

Instance Attribute Details

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

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

Returns:

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

    the result of running the Core::Test::Case



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

def result
  @result
end

#test_caseCucumber::Core::Test::Case (readonly)

Returns that was executed.

Returns:

  • (Cucumber::Core::Test::Case)

    that was executed



8
9
10
# File 'lib/cucumber/events/test_case_finished.rb', line 8

def test_case
  @test_case
end

Class Method Details

.event_idObject



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

def self.event_id
  :test_case_finished
end