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
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory/python-pytest-bdd && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
pytest-bdd-4.0.1.tar.gz | 0000060801 59.4 KB | |
python-pytest-bdd.changes | 0000002501 2.44 KB | |
python-pytest-bdd.spec | 0000003433 3.35 KB |
Revision 8 (latest revision is 13)
- update to 4.0.1 - remove requires on python-enum34, not needed by pytest-bdd * 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.
Comments 0