Class: Cucumber::Distrib::Test::Case

Inherits:
Core::Test::Case
  • Object
show all
Defined in:
lib/cucumber/distrib/test.rb

Overview

Object that mimic Cucumber::Core::Test::Case on Leader for reporters.

Instance Method Summary collapse

Constructor Details

#initialize(test_case) ⇒ Case

Returns a new instance of Case.

Parameters:

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


17
18
19
20
21
22
23
24
25
# File 'lib/cucumber/distrib/test.rb', line 17

def initialize(test_case) # rubocop:disable Lint/MissingSuper
  @id = test_case.id
  @name = test_case.name
  @test_steps = test_case.test_steps.map { |test_step| Test.adapt_test_step(test_step) }
  @location = test_case.location
  @tags = test_case.tags
  @language = test_case.language
  @around_hooks = []
end