Class: Cucumber::Events::TestRunStarted

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

Overview

Event fired once all test cases have been filtered before the first one is 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_cases) ⇒ TestRunStarted

Returns a new instance of TestRunStarted.



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

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

Instance Attribute Details

#test_casesArray<Cucumber::Core::Test::Case> (readonly)

Returns the test cases to be executed.

Returns:

  • (Array<Cucumber::Core::Test::Case>)

    the test cases to be executed



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

def test_cases
  @test_cases
end

Class Method Details

.event_idObject



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

def self.event_id
  :test_run_started
end