Parse Cucumber environment configuration options

This commit is contained in:
Mark A. Miller 2011-06-01 16:03:37 -05:00
parent 88c07f864f
commit 5c68763612
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ module Hydra #:nodoc:
Cucumber.logger.level = Logger::INFO Cucumber.logger.level = Logger::INFO
@cuke_runtime = Cucumber::Runtime.new @cuke_runtime = Cucumber::Runtime.new
@cuke_configuration = Cucumber::Cli::Configuration.new(dev_null, dev_null) @cuke_configuration = Cucumber::Cli::Configuration.new(dev_null, dev_null)
@cuke_configuration.parse!(['features']+files) @cuke_configuration.parse!(ENV['CUCUMBER_OPTS'].split(' ') + ['features'] + files)
support_code = Cucumber::Runtime::SupportCode.new(@cuke_runtime, @cuke_configuration.guess?) support_code = Cucumber::Runtime::SupportCode.new(@cuke_runtime, @cuke_configuration.guess?)
support_code.load_files!(@cuke_configuration.support_to_load + @cuke_configuration.step_defs_to_load) support_code.load_files!(@cuke_configuration.support_to_load + @cuke_configuration.step_defs_to_load)