Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency pytest-bdd to v6 #42

Closed
wants to merge 1 commit into from
Closed

Conversation

nagbot
Copy link
Contributor

@nagbot nagbot commented Aug 24, 2023

This PR contains the following updates:

Package Update Change
pytest-bdd (source) major ==4.1.0 -> ==6.1.1

Release Notes

pytest-dev/pytest-bdd (pytest-bdd)

v6.1.1

Compare Source

  • 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. #&#8203;577 <https://github.com/pytest-dev/pytest-bdd/pull/577>_

v6.1.0

Compare Source

  • Fix bug where steps without parsers would take precedence over steps with parsers. #&#8203;534 <https://github.com/pytest-dev/pytest-bdd/pull/534>_
  • 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. #&#8203;534 <https://github.com/pytest-dev/pytest-bdd/pull/534>_ #&#8203;544 <https://github.com/pytest-dev/pytest-bdd/pull/544>_ #&#8203;525 <https://github.com/pytest-dev/pytest-bdd/issues/525>_
  • Require pytest>=6.2 #&#8203;534 <https://github.com/pytest-dev/pytest-bdd/pull/534>_
  • 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 #&#8203;548 <https://github.com/pytest-dev/pytest-bdd/pull/548>_
  • Add stacklevel param to given, when, then, step decorators. This allows for programmatic step generation #&#8203;548 <https://github.com/pytest-dev/pytest-bdd/pull/548>_
  • Hide pytest-bdd internal method in user tracebacks #&#8203;557 <https://github.com/pytest-dev/pytest-bdd/pull/557>_.
  • Make the package PEP 561-compatible #&#8203;559 <https://github.com/pytest-dev/pytest-bdd/issues/559>_ #&#8203;563 <https://github.com/pytest-dev/pytest-bdd/pull/563>_.
  • Configuration option bdd_features_base_dir is interpreted as relative to the pytest root directory <https://docs.pytest.org/en/latest/reference/customize.html#rootdir>_ (previously it was relative to the current working directory). #&#8203;573 <https://github.com/pytest-dev/pytest-bdd/pull/573>_

v6.0.1

Compare Source

  • Fix regression introduced in 6.0.0 where a step function decorated multiple using a parsers times would not be executed correctly. #&#8203;530 <https://github.com/pytest-dev/pytest-bdd/pull/530>_ #&#8203;528 <https://github.com/pytest-dev/pytest-bdd/issues/528>_

v6.0.0

Compare Source

This release introduces breaking changes in order to be more in line with the official gherkin specification.

  • Cleanup of the documentation and tests related to parametrization (elchupanebrej) #&#8203;469 <https://github.com/pytest-dev/pytest-bdd/pull/469>_
  • Removed feature level examples for the gherkin compatibility (olegpidsadnyi) #&#8203;490 <https://github.com/pytest-dev/pytest-bdd/pull/490>_
  • Removed vertical examples for the gherkin compatibility (olegpidsadnyi) #&#8203;492 <https://github.com/pytest-dev/pytest-bdd/pull/492>_
  • Step arguments are no longer fixtures (olegpidsadnyi) #&#8203;493 <https://github.com/pytest-dev/pytest-bdd/pull/493>_
  • Drop support of python 3.6, pytest 4 (elchupanebrej) #&#8203;495 <https://github.com/pytest-dev/pytest-bdd/pull/495>_ #&#8203;504 <https://github.com/pytest-dev/pytest-bdd/issues/504>_
  • Step definitions can have "yield" statements again (4.0 release broke it). They will be executed as normal fixtures: code after the yield is executed during teardown of the test. (youtux) #&#8203;503 <https://github.com/pytest-dev/pytest-bdd/issues/503>_
  • Scenario outlines unused example parameter validation is removed (olegpidsadnyi) #&#8203;499 <https://github.com/pytest-dev/pytest-bdd/pull/499>_
  • Add type annotations (youtux) #&#8203;505 <https://github.com/pytest-dev/pytest-bdd/pull/505>_
  • pytest_bdd.parsers.StepParser now is an Abstract Base Class. Subclasses must make sure to implement the abstract methods. (youtux) #&#8203;505 <https://github.com/pytest-dev/pytest-bdd/pull/505>_
  • Angular brackets in step definitions are only parsed in "Scenario Outline" (previously they were parsed also in normal "Scenario"s) (youtux) #&#8203;524 <https://github.com/pytest-dev/pytest-bdd/pull/524>_.

v5.0.0

Compare Source

This release introduces breaking changes, please refer to the :ref:Migration from 4.x.x.

  • Rewrite the logic to parse Examples for Scenario Outlines. Now the substitution of the examples is done during the parsing of Gherkin feature files. You won't need to define the steps twice like @given("there are <start> cucumbers") and @given(parsers.parse("there are {start} cucumbers")). The latter will be enough.
  • Removed example_converters from scenario(...) signature. You should now use just the converters parameter for given, when, then.
  • Removed --cucumberjson-expanded and --cucumber-json-expanded options. Now the JSON report is always expanded.
  • Removed --gherkin-terminal-reporter-expanded option. Now the terminal report is always expanded.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

frodeaa added a commit that referenced this pull request Aug 28, 2023
- pytest-bdd from 4.1.0 to 6.1.1
  - parse to v1.19.1
  - parse-type to v0.6.2
- pytest 7.2.0 to 7.4.0
  - iniconfig to v2
  - packaging to v23
- typing_extensions from 4.4.0 to v4.7.1
- exceptiongroup from 1.0.4 from 1.1.3

Closes: #42
Closes: #22
Closes: #23
Closes: #42
Closes: #40
Closes: #41
Closes: #30
@frodeaa frodeaa mentioned this pull request Aug 28, 2023
frodeaa added a commit that referenced this pull request Aug 28, 2023
- pytest-bdd from 4.1.0 to 6.1.1
  - parse to v1.19.1
  - parse-type to v0.6.2
- pytest 7.2.0 to 7.4.0
  - iniconfig to v2
  - packaging to v23
- typing_extensions from 4.4.0 to v4.7.1
- exceptiongroup from 1.0.4 from 1.1.3

> **Note:** pytest-bdd 5.0.0 removed support for `--cucumberjson-expanded`
> Now the JSON report is always expanded.

Closes: #42
Closes: #22
Closes: #23
Closes: #42
Closes: #40
Closes: #41
Closes: #30
@frodeaa frodeaa closed this Dec 22, 2023
@frodeaa frodeaa deleted the renovate/pytest-bdd-6.x branch December 22, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants