BDD for pytest
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.
- Developed at devel:languages:python:pytest
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:16.0:FactoryCandidates/python-pytest-bdd && cd $_
- Create Badge
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)
- 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