- Update to 8.1.0:
* Added
+ Gherkin keyword aliases can now be used and correctly reported in json
and terminal output.
+ Added localization support.
+ Rule keyword can be used in feature files.
+ Added support for multiple example tables
+ Added filtering by tags against example tables
+ Tags can now be on multiple lines (stacked)
+ Continuation of steps using asterisks instead of And/But supported.
+ Added ``datatable`` argument for steps that contain a datatable.
* Changed
+ Step arguments "datatable" and "docstring" are now reserved, and they
can't be used as step argument names.
+ Scenario description field is now set for Cucumber JSON output.
+ Text after the # character is no longer stripped from the Scenario and
Feature name.
+ Use the gherkin-official parser, replacing the custom parsing logic.
+ Multiline steps must now always use triple-quotes for the additional
lines.
+ All feature files must now use the keyword Feature: to be considered
valid.
+ Tags can no longer have spaces.
+ Text after the # character is no longer stripped from the Step name.
+ Fixed an issue with the upcoming pytest release related to the use of
@pytest.mark.usefixtures with an empty list.
* Removed
+ Dropped support for python 3.8.
+ Drop compatibility with pytest < 7.0.0.
OBS-URL: https://build.opensuse.org/request/show/1302511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-bdd?expand=0&rev=14
* Added
+ Gherkin keyword aliases can now be used and correctly reported in json
and terminal output.
+ Added localization support.
+ Rule keyword can be used in feature files.
+ Added support for multiple example tables
+ Added filtering by tags against example tables
+ Tags can now be on multiple lines (stacked)
+ Continuation of steps using asterisks instead of And/But supported.
+ Added ``datatable`` argument for steps that contain a datatable.
* Changed
+ Step arguments "datatable" and "docstring" are now reserved, and they
can't be used as step argument names.
+ Scenario description field is now set for Cucumber JSON output.
+ Text after the # character is no longer stripped from the Scenario and
Feature name.
+ Use the gherkin-official parser, replacing the custom parsing logic.
+ Multiline steps must now always use triple-quotes for the additional
lines.
+ All feature files must now use the keyword Feature: to be considered
valid.
+ Tags can no longer have spaces.
+ Text after the # character is no longer stripped from the Step name.
+ Fixed an issue with the upcoming pytest release related to the use of
@pytest.mark.usefixtures with an empty list.
* Removed
+ Dropped support for python 3.8.
+ Drop compatibility with pytest < 7.0.0.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-bdd?expand=0&rev=29
- Update to 7.1.2:
* Address another compatibility issue with pytest 8.1 (fixture registration).
* Address a bug introduced in pytest-bdd 7.1 caused by incorrect pytest
version check.
* Address compatibility issue with pytest 8.1.
* Fix errors occurring if `pytest_unconfigure` is called before
`pytest_configure`.
* parsers.re now does a fullmatch instead of a partial match. This is to
make it work just like the other parsers, since they don't ignore
non-matching characters at the end of the string.
* Drop python 3.7 compatibility, as it's no longer supported.
* Declare official support for python 3.12
* Improve parser performance by 15%
* Fix regression introduced in version 6.1.0 where the
pytest_bdd_after_scenario hook would be called after every step instead
of after the scenario.
* Fix bug where steps without parsers would take precedence over steps
with parsers.
* Step functions can now be decorated multiple times with @given, @when,
@then. Previously every decorator would override converters and
target_fixture every at every application.
* Require pytest>=6.2
* Using modern way to specify hook options to avoid deprecation warnings
with pytest >=7.2.
* Add generic step decorator that will be used for all kind of steps
* Add stacklevel param to given, when, then, step decorators. This allows
for programmatic step generation
* Hide pytest-bdd internal method in user tracebacks
* Make the package PEP 561-compatible
* Configuration option bdd_features_base_dir is interpreted as relative
OBS-URL: https://build.opensuse.org/request/show/1172299
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-bdd?expand=0&rev=11
* Address another compatibility issue with pytest 8.1 (fixture registration).
* Address a bug introduced in pytest-bdd 7.1 caused by incorrect pytest
version check.
* Address compatibility issue with pytest 8.1.
* Fix errors occurring if `pytest_unconfigure` is called before
`pytest_configure`.
* parsers.re now does a fullmatch instead of a partial match. This is to
make it work just like the other parsers, since they don't ignore
non-matching characters at the end of the string.
* Drop python 3.7 compatibility, as it's no longer supported.
* Declare official support for python 3.12
* Improve parser performance by 15%
* Fix regression introduced in version 6.1.0 where the
pytest_bdd_after_scenario hook would be called after every step instead
of after the scenario.
* Fix bug where steps without parsers would take precedence over steps
with parsers.
* Step functions can now be decorated multiple times with @given, @when,
@then. Previously every decorator would override converters and
target_fixture every at every application.
* Require pytest>=6.2
* Using modern way to specify hook options to avoid deprecation warnings
with pytest >=7.2.
* Add generic step decorator that will be used for all kind of steps
* Add stacklevel param to given, when, then, step decorators. This allows
for programmatic step generation
* Hide pytest-bdd internal method in user tracebacks
* Make the package PEP 561-compatible
* Configuration option bdd_features_base_dir is interpreted as relative
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-bdd?expand=0&rev=23
- Update to 5.0.0:
* Rewrite the logic to parse Examples for Scenario Outlines. Now the
substitution of the examples is done during the parsing of Gherkin
feature files.
* Removed ``example_converters`` from ``scenario(...)`` signature.
* Removed ``--cucumberjson-expanded`` and ``--cucumber-json-expanded``
options. Now the JSON report is always expanded.
* Removed ``--gherkin-terminal-reporter-expanded`` option.
* `when` and `then` steps now can provide a `target_fixture`, just like
`given` does.
* Drop compatibility for python 2 and officially support only python >= 3.6.
* Fix error when using `--cucumber-json-expanded` in combination with
`example_converters` (marcbrossaissogeti).
* Fix `--generate-missing` not correctly recognizing steps with parsers
- Drop python-mock and python-six from BuildRequires and Requires.
- No longer skip tests that are not broken
OBS-URL: https://build.opensuse.org/request/show/960954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-bdd?expand=0&rev=10
* Rewrite the logic to parse Examples for Scenario Outlines. Now the
substitution of the examples is done during the parsing of Gherkin
feature files.
* Removed ``example_converters`` from ``scenario(...)`` signature.
* Removed ``--cucumberjson-expanded`` and ``--cucumber-json-expanded``
options. Now the JSON report is always expanded.
* Removed ``--gherkin-terminal-reporter-expanded`` option.
* `when` and `then` steps now can provide a `target_fixture`, just like
`given` does.
* Drop compatibility for python 2 and officially support only python >= 3.6.
* Fix error when using `--cucumber-json-expanded` in combination with
`example_converters` (marcbrossaissogeti).
* Fix `--generate-missing` not correctly recognizing steps with parsers
- Drop python-mock and python-six from BuildRequires and Requires.
- No longer skip tests that are not broken
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-bdd?expand=0&rev=21
- update to 4.0.1
- remove requires on python-enum34, not needed by pytest-bdd
* Fixed performance regression introduced in 4.0.0 where collection time
of tests would take way longer than before
* Strict Gherkin option is removed (@scenario() does not accept
the strict_gherkin parameter).
* @scenario() does not accept the undocumented parameter caller_module anymore.
* Given step is no longer a fixture. The scope parameter is also removed.
* Fixture parameter is removed from the given step declaration.
* pytest_bdd_step_validation_error hook is removed.
* Fix an error with pytest-pylint plugin
* Fix pytest-xdist 2.0 compatibility
* Fix compatibility with pytest 6 --import-mode=importlib option.
OBS-URL: https://build.opensuse.org/request/show/836273
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-bdd?expand=0&rev=8
* Fixed performance regression introduced in 4.0.0 where collection time
of tests would take way longer than before
* Strict Gherkin option is removed (@scenario() does not accept
the strict_gherkin parameter).
* @scenario() does not accept the undocumented parameter caller_module anymore.
* Given step is no longer a fixture. The scope parameter is also removed.
* Fixture parameter is removed from the given step declaration.
* pytest_bdd_step_validation_error hook is removed.
* Fix an error with pytest-pylint plugin
* Fix pytest-xdist 2.0 compatibility
* Fix compatibility with pytest 6 --import-mode=importlib option.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-bdd?expand=0&rev=16