Class: Cucumber::Cli::Main
- Inherits:
-
Object
- Object
- Cucumber::Cli::Main
- Defined in:
- lib/bolt/runners/cucumber.rb,
lib/bolt/runners/cucumber.rb
Overview
:nodoc:
Class Method Summary collapse
-
.execute(args) ⇒ Object
Overwritten execute to create a reference for StepMother.
Instance Method Summary collapse
-
#execute!(step_mother) ⇒ Object
:nodoc:.
Class Method Details
.execute(args) ⇒ Object
Overwritten execute to create a reference for StepMother
196 197 198 199 200 201 |
# File 'lib/bolt/runners/cucumber.rb', line 196 def self.execute(args) instance = new(args) instance.execute!(@step_mother) Bolt::Runners::Cucumber.mother = @step_mother instance end |
Instance Method Details
#execute!(step_mother) ⇒ Object
:nodoc:
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/bolt/runners/cucumber.rb', line 213 def execute!(step_mother) configuration.load_language step_mother. = configuration. require_files enable_diffing features = load_plain_text_features visitor = configuration.build_formatter_broadcaster(step_mother) step_mother.visitor = visitor # Needed to support World#announce visitor.visit_features(features) failure = step_mother.steps(:failed).any? || (configuration.strict? && step_mother.steps(:undefined).any?) # do not exit!!!!!! # Kernel.exit(failure ? 1 : 0) end |