@tag in feature files and filtered by passing tags to cucumber::test() or cucumber::run(). Feature-level tags are inherited by all scenarios in the feature.pending() function to mark steps as pending. A pending step will cause the scenario to be reported as skipped rather than failed. This is useful when writing the feature files before implementing the steps.CucumberReporter is a base class (extending testthat::Reporter) with start_feature()/end_feature()/start_step()/end_step() hooks, and CucumberProgressReporter prints each step as it runs with its real Given/When/Then keyword. Pass one via the reporter argument to cucumber::test() or cucumber::run().{int}/{string} placeholders inferred from the step text) instead of just an error.Given/When/Then keyword (resolving And/But/* to the preceding one) instead of collapsing every step to a generic keyword.""" was indented less than the surrounding nesting lost the indentation of its own lines. #16cucumber::run() function to allow running Cucumber tests alongside testthat tests.tests/acceptance.See the migration guide.
cucumber::test() function.after hook runs even if a scenario fails. This is useful for cleaning up resources even if a test fails unexpectedly.?cucumber::opts.before and after hooks.test_interactive parameter to cucumber::test. It allows you to interactively select which feature files to run. It can be useful to get quicker feedback when developing new features.11.1, +11.1, -11.1.{string} parameter is matched. It now matches on text in quotes. A step Given I have a {string} will match on Given I have a "foo bar". This change brings the parser closer to how the original cucumber expressions work.{word} parameter that matches on a single word. A step like Given I have a {word} will match on Given I have a foo.Given I have a {string} and a {string} and Given I have a {string} it will match on Given I have a "foo" and a "bar" instead of throwing an error that multiple step definitions have been found.define_parameter_type function docs.First stable version ๐