Module: Cucumber::Runtime::InjectableFeatures

Included in:
Cucumber::Runtime
Defined in:
lib/test_queue/runner/cucumber.rb

Overview

Without this module, Runtime#features would load all features specified on the command line. We want to avoid that and load only the features each worker needs ourselves, so we override the default behavior to let us put our iterator in place without loading any features directly.

Instance Method Summary collapse

Instance Method Details

#featuresObject



25
26
27
28
# File 'lib/test_queue/runner/cucumber.rb', line 25

def features
  return @features if defined?(@features)
  super
end

#features=(iterator) ⇒ Object



30
31
32
33
# File 'lib/test_queue/runner/cucumber.rb', line 30

def features=(iterator)
  @features = ::Cucumber::Ast::Features.new
  @features.features = iterator
end