{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/3"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"pytest-bdd implements Gherkin-based behavior-driven development testing within pytest, allowing you to write feature files and step definitions that unify functional and unit tests.","skillfed_tags":["bdd","gherkin","acceptance-testing"],"use_cases":["Write acceptance tests in plain Gherkin that non-technical stakeholders can read and understand.","Unify functional and unit tests in a single pytest suite, reducing test infrastructure complexity.","Reuse existing pytest fixtures as setup and action steps in BDD scenarios via dependency injection.","Parameterize BDD steps with multiple data types using parse or cfparse parsers for scenario coverage.","Maintain feature documentation that stays synchronized with executable tests."],"what_it_does":"pytest-bdd is a pytest plugin that brings Gherkin-style behavior-driven development (BDD) testing into the pytest ecosystem. It lets you write human-readable feature files describing application behavior, then map those steps to Python test functions using decorators. Unlike standalone BDD tools, it integrates directly with pytest, so you can reuse pytest fixtures, combine BDD and unit tests in the same project, and avoid maintaining a separate test runner.\n\nThe package supports step parameters with multiple parser types (string, parse, cfparse, regex), step aliases for readability, and dependency injection through pytest fixtures. It handles the full BDD workflow\u2014Given/When/Then steps, scenario outlines, and step argument parsing\u2014while letting you leverage pytest's reporting, plugins, and configuration.","worth_installing":"Yes. pytest-bdd is actively maintained, permissively licensed, has no known vulnerabilities, and integrates cleanly into pytest workflows. Install it if you need BDD-style testing, want to document requirements as executable scenarios, or need to bridge technical and non-technical stakeholders. The low install friction and mature codebase make it a safe choice for projects already using pytest."},"id":"pytest-bdd","links":{"html":"https://skillfed.io/packages/pytest-bdd","md":"https://skillfed.io/packages/pytest-bdd.md","pypi":"https://pypi.org/project/pytest-bdd/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-12-05","license_spdx":null,"license_treatment":"permissive","name":"pytest-bdd","python_support":"supports_current","summary":"BDD for pytest"},"popularity":{"monthly_downloads":3611297,"position":2558,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"8.1.0"}
