cfd136113a
Accepting request 1302511 from devel:languages:python:pytest
Ana Guerrero2025-09-03 19:07:51 +00:00
3d5634cc01
- 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.
Steve Kowalik2025-09-03 01:16:02 +00:00
e6fdf7b947
Accepting request 1204943 from devel:languages:python:pytest
Ana Guerrero2024-10-02 19:33:07 +00:00
9a01447ae3
- update to 7.3.0: * Fix an issue when only the first Step would inject a fixture, while later steps would not be able to. * Test against the latest versions of pytest (8.2, 8.3).
Dirk Mueller2024-10-01 13:36:30 +00:00
1dedb2ed79
Accepting request 1179139 from devel:languages:python:pytest
Ana Guerrero2024-06-07 13:04:45 +00:00
a7b105dbc5
- update to 7.2.0: * Fix compatibility issue with Python 3.13. * Declare compatibility with Python 3.13.
Dirk Mueller2024-06-07 07:01:24 +00:00
a74ec6763a
Accepting request 1172299 from devel:languages:python:pytest
Ana Guerrero2024-05-14 11:39:05 +00:00
4aab6aa821
- 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
Steve Kowalik2024-05-06 06:41:36 +00:00
0033d2ef62
- 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
Steve Kowalik2022-03-11 02:44:19 +00:00
6d98ee28f7
Accepting request 875535 from devel:languages:python:pytest
Richard Brown
2021-03-02 11:32:12 +00:00
ba285aafc3
Accepting request 875532 from home:bnavigator:branches:devel:languages:python:pytest
Matej Cepl2021-02-26 21:33:31 +00:00
cb23dfddbf
- remove requires on python-enum34, not needed by pytest-bdd
Ondřej Súkup2020-09-23 09:49:06 +00:00
ff4c0a73d1
- update to 4.0.1 * 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.
Ondřej Súkup2020-09-23 09:33:30 +00:00
3400b07efe
- Update to 3.1.1: * Allow unicode string in @given() step names when using python2. This makes the transition of projects from python 2 to 3 easier.
Tomáš Chvátal
2019-07-18 16:51:25 +00:00