Merge branch 'master' into set-default-parser

This commit is contained in:
Jason Allen 2024-11-15 17:59:58 +00:00
commit c4f44dc3b3
2 changed files with 79 additions and 20 deletions

View File

@ -1,33 +1,92 @@
Changelog
=========
All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.1.0/>`_,
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
Unreleased
----------
- Dropped support for python 3.8. Supported python versions: 3.9, 3.10, 3.11, 3.12, 3.13.
- Text after the `#` character is no longer stripped from the Scenario and Feature name.
- Gherkin keyword aliases can now be used and correctly reported in json and terminal output (see `Keywords <https://cucumber.io/docs/gherkin/reference/#keywords>` for permitted list).
- Added localization support. The language of the feature file can be specified using the `# language: <language>` directive at the beginning of the file.
- Rule keyword can be used in feature files (see `Rule <https://cucumber.io/docs/gherkin/reference/#rule>`)
- Multiple example tables supported
- Added filtering by tags against example tables
Added
+++++
Changed
+++++++
Deprecated
++++++++++
Removed
+++++++
Fixed
+++++
Security
++++++++
[8.0.0] - 2024-11-14
----------
Added
+++++
* Gherkin keyword aliases can now be used and correctly reported in json and terminal output (see `Keywords <https://cucumber.io/docs/gherkin/reference/#keywords>`_ for permitted list).
* Added localization support. The language of the feature file can be specified using the `# language: <language>` directive at the beginning of the file.
* Rule keyword can be used in feature files (see `Rule <https://cucumber.io/docs/gherkin/reference/#rule>`_)
* Added support for multiple example tables
* Added filtering by tags against example tables
* Since the 7.x series:
* 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 (see `Data Tables <https://cucumber.io/docs/gherkin/reference/#data-tables>`_).
* Added ``docstring`` argument for steps that contain a docstring (see `Doc Strings <https://cucumber.io/docs/gherkin/reference/#doc-strings>`_).
Changed
+++++++
* Changelog format updated to follow `Keep a Changelog <https://keepachangelog.com/en/1.1.0/>`_.
* Text after the ``#`` character is no longer stripped from the Scenario and Feature name.
* Since the 7.x series:
* Use the `gherkin-official <https://pypi.org/project/gherkin-official/>`_ parser, replacing the custom parsing logic. This will make pytest-bdd more compatible with the Gherkin specification.
* 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 (e.g. ``@tag one`` and ``@tag two`` are no longer valid).
* Text after the ``#`` character is no longer stripped from the Step name.
* Multiline strings no longer match name based on multiple lines - only on the actual step text on the step line.
Removed
+++++++
* Dropped support for python 3.8. Supported python versions: 3.9, 3.10, 3.11, 3.12, 3.13.
* Since the 7.x series:
* Drop compatibility with pytest < 7.0.0.
Fixed
+++++
* Since the 7.x series:
* Updated documentation to clarify that ``--gherkin-terminal-reporter`` needs to be used with ``-v`` or ``-vv``.
8.0.0b2
----------
- Update documentation to clarify that `--gherkin-terminal-reporter` needs to be used with `-v` or `-vv`.
- Drop compatibility with pytest < 7.0.0.
- Continuation of steps using asterisks instead of And/But supported.
- Added `datatable` argument for steps that contain a datatable (see `Data Tables <https://cucumber.io/docs/gherkin/reference/#data-tables>`).
- Added `docstring` argument for steps that contain a docstring (see `Doc Strings <https://cucumber.io/docs/gherkin/reference/#doc-strings>`).
- Multiline strings no longer match name based on multiple lines - only on the actual step text on the step line.
* Updated documentation to clarify that ``--gherkin-terminal-reporter`` needs to be used with ``-v`` or ``-vv``.
* Drop compatibility with pytest < 7.0.0.
* Continuation of steps using asterisks instead of And/But supported.
* Added ``datatable`` argument for steps that contain a datatable (see `Data Tables <https://cucumber.io/docs/gherkin/reference/#data-tables>`_).
* Added ``docstring`` argument for steps that contain a docstring (see `Doc Strings <https://cucumber.io/docs/gherkin/reference/#doc-strings>`_).
* Multiline strings no longer match name based on multiple lines - only on the actual step text on the step line.
8.0.0b1
----------
- Use `gherkin-official` parser to replace custom parsing logic. This will make pytest-bdd more compatible with the Gherkin specification.
- 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 (e.g. "@tag one" and "@tag two" are no longer valid).
- Tags can now be on multiple lines (stacked)
- Text after the `#` character is no longer stripped from the Step name.
* Use the `gherkin-official <https://pypi.org/project/gherkin-official/>`_ parser, replacing the custom parsing logic. This will make pytest-bdd more compatible with the Gherkin specification.
* 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 (e.g. ``@tag one`` and ``@tag two`` are no longer valid).
* Tags can now be on multiple lines (stacked)
* Text after the ``#`` character is no longer stripped from the Step name.
7.3.0
----------

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "pytest-bdd"
version = "8.0.0b2"
version = "8.0.0"
description = "BDD for pytest"
authors = ["Oleg Pidsadnyi <oleg.pidsadnyi@gmail.com>", "Anatoly Bubenkov <bubenkoff@gmail.com>"]
maintainers = ["Alessio Bogon <778703+youtux@users.noreply.github.com>"]