BDD for pytest

Edit Package python-pytest-bdd

BDD library for the py.test runner

pytest-bdd implements a subset of Gherkin language for the automation of the project
requirements testing and easier behavioral driven development.

Unlike many other BDD tools it doesn't require a separate runner and benefits from
the power and flexibility of the pytest. It allows to unify your unit and functional
tests, easier continuous integration server configuration and maximal reuse of the
tests setup.

Pytest fixtures written for the unit tests can be reused for the setup and actions
mentioned in the feature steps with dependency injection, which allows a true BDD
just-enough specification of the requirements without maintaining any context object
containing the side effects of the Gherkin imperative declarations.

Refresh
Refresh
Source Files
Filename Size Changed
pytest-bdd-5.0.0.tar.gz 0000061174 59.7 KB
python-pytest-bdd.changes 0000003903 3.81 KB
python-pytest-bdd.spec 0000003280 3.2 KB
Revision 10 (latest revision is 13)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 960954 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 10)
- 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
Comments 0
openSUSE Build Service is sponsored by