Class: Cucumber::Formatter::FailFast
- Inherits:
-
Object
- Object
- Cucumber::Formatter::FailFast
- Defined in:
- 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.
10 11 12 13 14 15 |
# File 'lib/cucumber/formatter/fail_fast.rb', line 10 def initialize(configuration) configuration.on_event :test_case_finished do |event| _test_case, result = *event.attributes Cucumber.wants_to_quit = true unless result.ok?(configuration.strict) end end |