class Cucumber::ResetableRuntime

Public Instance Methods

features() click to toggle source

Cucumber > 1.1.0 memoizes @loader which means we can’t load in new files. Patch it back to how it used to work.

# File lib/nitra/ext/cucumber.rb, line 24
def features
  @loader = Runtime::FeaturesLoader.new(
    @configuration.feature_files, 
    @configuration.filters, 
    @configuration.tag_expression)
  @loader.features
end
reset() click to toggle source

Cucumber lacks a reset hook like the one Rspec has so we need to patch one in… Call this after configure so that the correct configuration is used to create the result set.

# File lib/nitra/ext/cucumber.rb, line 18
def reset
  @results = Results.new(nil)
end