Class: Cucumber::Formatter::FailFast
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/fail_fast.rb
Instance Method Summary collapse
-
#initialize(configuration) ⇒ FailFast
constructor
A new instance of FailFast.
Constructor Details
#initialize(configuration) ⇒ FailFast
Returns a new instance of FailFast.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/fail_fast.rb', line 9 def initialize(configuration) @previous_test_case = nil configuration.on_event :test_case_finished do |event| test_case, result = *event.attributes if test_case != @previous_test_case @previous_test_case = event.test_case Cucumber.wants_to_quit = true unless result.ok?(configuration.strict) elsif result.passed? Cucumber.wants_to_quit = false end end end |