Module: Flatware::Cucumber
- Extended by:
- Cucumber
- Included in:
- Cucumber
- Defined in:
- lib/flatware/cucumber.rb,
lib/flatware/cucumber/result.rb,
lib/flatware/cucumber/runtime.rb,
lib/flatware/cucumber/formatter.rb,
lib/flatware/cucumber/step_result.rb,
lib/flatware/cucumber/scenario_result.rb
Defined Under Namespace
Modules: Formatters
Classes: Config, Formatter, Result, Runtime, ScenarioResult, StepResult
Instance Method Summary
collapse
Instance Method Details
34
35
36
37
38
39
40
|
# File 'lib/flatware/cucumber.rb', line 34
def configure(args, out_stream=$stdout, error_stream=$stderr)
raw_args = args.dup
cli_config = ::Cucumber::Cli::Configuration.new(out_stream, error_stream)
cli_config.parse! args + %w[--format Flatware::Cucumber::Formatter]
cucumber_config = ::Cucumber::Configuration.new cli_config
Config.new cucumber_config, raw_args
end
|
#run(feature_files, options) ⇒ Object
42
43
44
|
# File 'lib/flatware/cucumber.rb', line 42
def run(feature_files, options)
runtime(Array(feature_files) + options).run!
end
|
#runtime(args) ⇒ Object
46
47
48
|
# File 'lib/flatware/cucumber.rb', line 46
def runtime(args)
::Cucumber::Runtime.new(configure(args).config)
end
|