Releases: jakubsob/cucumber
Releases · jakubsob/cucumber
v1.2.1
v1.2.0
What's Changed
- ✨ Added support for "Scenario Outline", "Background" and "*" keywords.
⚠️ Keywords are not taken into account when looking for a step definition. See Gherkin steps reference.- 🛡️ Added validation of feature files to fail early if malformed:
- Checks for consistent indentation.
- Check if a feature file has only one Feature.
- ✨ Added option to set the indent of feature files. Useful when you use a different indent than the default 2 whitespaces. All user-facing options are documented in
?cucumber::opts
. - 📝 Added "Gherkin Reference" article.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
1.0.4
v1.0.2
v1.0.1
- ✨ Changed how
{string}
parameter is matched. It now matches on text in quotes. A stepGiven I have a {string}
will match onGiven I have a "foo bar"
. This change brings the parser closer to how the original cucumber expressions work. - ✨ Added a
{word}
parameter that matches on a single word. A step likeGiven I have a {word}
will match onGiven I have a foo
. - 🐛 Fix handling of repeated parameters in the same step. Now if there are steps
Given I have a {string} and a {string}
andGiven I have a {string}
it will match onGiven I have a "foo" and a "bar"
instead of throwing an error that multiple step definitions have been found. - 📝 Improved documentation of parameters in
define_parameter_type
function docs. - 📝 Added an example with snapshot test.