Module: Flatware::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/formatters/console.rb,
lib/flatware/cucumber/formatters/console/summary.rb
Defined Under Namespace
Modules: Formatters
Classes: Config, Formatter, Result, Runtime, StepResult
Class Method Summary
collapse
Class Method Details
35
36
37
38
39
40
41
|
# File 'lib/flatware/cucumber.rb', line 35
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
43
44
45
|
# File 'lib/flatware/cucumber.rb', line 43
def run(feature_files, options)
runtime(Array(feature_files) + options).run!
end
|
.runtime(args) ⇒ Object
47
48
49
|
# File 'lib/flatware/cucumber.rb', line 47
def runtime(args)
::Cucumber::Runtime.new(configure(args).config)
end
|