Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 948 Bytes

13.0.0.md

File metadata and controls

35 lines (26 loc) · 948 Bytes

Upgrading to cucumber-core 13.0.0

Summary#ok? / Summary.ok? strict argument

The strict argument for all the result / summary classes has changed to a keyword argument.

This was typically used in .ok? and #ok? checks for the summary reporter.

Before cucumber-core 13.0.0

summary = Cucumber::Core::Report::Summary.new(event_bus)
# There are many examples of the strict configuration
strict = ::Cucumber::Core::Test::Result::StrictConfiguration.new([:undefined])
summary.ok?(strict)
# There are many examples of result classes
Result::Flaky.ok?(false)

With cucumber-core 13.0.0

summary = Cucumber::Core::Report::Summary.new(event_bus)
# There are many examples of the strict configuration
strict = ::Cucumber::Core::Test::Result::StrictConfiguration.new([:undefined])
summary.ok?(strict: strict)
# There are many examples of result classes
Result::Flaky.ok?(strict: false)