File: 13.0.0.md

package info (click to toggle)
ruby-cucumber-core 16.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: ruby: 5,074; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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

```ruby
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)
```

```ruby
# There are many examples of result classes
Result::Flaky.ok?(false)
```

### With cucumber-core 13.0.0

```ruby
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)
```

```ruby
# There are many examples of result classes
Result::Flaky.ok?(strict: false)
```