You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -113,8 +113,8 @@ The full gamut of Cucumber's [Gherkin] language is implemented by the [`gherkin`
113
113
114
114
This project is licensed under either of
115
115
116
-
* Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/cucumber-rs/cucumber/blob/main/LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
117
-
* MIT license ([LICENSE-MIT](https://github.com/cucumber-rs/cucumber/blob/main/LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
116
+
* Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/cucumber-rs/cucumber/blob/v0.22.0/LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
117
+
* MIT license ([LICENSE-MIT](https://github.com/cucumber-rs/cucumber/blob/v0.22.0/LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
Once we run the tests again, we see that two lines are green now and the next one is marked as not yet implemented:
164
+
Once we run the tests again, we see that two lines are green now and the next one is marked as not yet implemented:
165
165

166
166
167
167
Finally, how do we check our result? We expect that this will cause some change in the cat and that the cat will no longer be hungry since it has been fed. The `then`[step] matcher follows to assert this, as our [feature] says:
Once we run the tests, now we see all steps being accounted for and the whole [scenario] passing:
214
+
Once we run the tests, now we see all steps being accounted for and the whole [scenario] passing:
215
215

216
216
217
217
> __TIP__: In addition to assertions, we may also return a `Result<()>` from a [step] matching function. Returning `Err` will cause the [step] to fail. This lets using the `?` operator for more concise step implementations just like in [unit tests](https://doc.rust-lang.org/rust-by-example/testing/unit_testing.html#tests-and-).
> __TIP__: By default, unlike [unit tests](https://doc.rust-lang.org/cargo/commands/cargo-test.html#test-options), failed [step]s don't terminate the execution instantly, and the whole test suite is executed regardless of them. Use `--fail-fast`[CLI] option to stop execution on first failure.
> __NOTE__: We surround the regex with `^..$` to ensure an __exact__ match. This is much more useful when adding more and more [step]s, so they won't accidentally interfere with each other.
334
334
335
-
[Cucumber] will reuse these [step] matchers:
335
+
[Cucumber] will reuse these [step] matchers:
336
336

337
337
338
338
> __NOTE__: Captured values are __bold__ to indicate which part of a [step] is actually captured.
@@ -398,7 +398,7 @@ A contrived example, but it demonstrates that [step]s can be reused as long as t
398
398
Let's switch our runtime to `tokio`:
399
399
```toml
400
400
[dev-dependencies]
401
-
cucumber = "0.20"
401
+
cucumber = "0.22"
402
402
tokio = { version = "1.10", features = ["macros", "rt-multi-thread", "time"] }
0 commit comments