Class: Cucumber::Events::TestCaseStarted

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

Overview

Signals that a Core::Test::Case is about to be executed

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) ⇒ TestCaseStarted

Returns a new instance of TestCaseStarted.



16
17
18
19
# File 'lib/cucumber/events/test_case_started.rb', line 16

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

Instance Attribute Details

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

Returns the test case to be executed.

Returns:

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

    the test case to be executed



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

def test_case
  @test_case
end

Class Method Details

.event_idObject



12
13
14
# File 'lib/cucumber/events/test_case_started.rb', line 12

def self.event_id
  :test_case_started
end