pytest-bdd
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
What pytest-bdd is
pytest-bdd is a BDD framework for pytest that supports a subset of the Gherkin language for automating requirements tests. Scenarios run through pytest itself, with no separate runner. Step functions use given, when and then decorators and bind to scenarios in feature files. Existing pytest fixtures can be reused in steps through dependency injection. It supports scenario outlines, backgrounds, rules, datatables and docstrings. Each feature file holds a single feature. It includes helpers that generate test code from feature files. It installs from PyPI with pip.
Written from the project's README, read .
- Category
- BDD
- License
- MIT
- Language
- Python
- Changelog
- Releases on GitHub
Repository metrics
Status
activeLast commit within 90 days of the fetch date.Computed from the last commit date and the archive flag on the fetch date. See the status rules.
Alternatives
Listed BDD tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from pytest-bdd's, with its source.
Robot Framework: Languages for writing tests: Robot Framework plain text syntax; Python as the primary language for extending it. source: README
behave: Languages for writing tests: Python. source: README
cucumber-js: Languages for writing tests: JavaScript; TypeScript and other languages that transpile to JavaScript. source: Docs: Transpiling
cucumber-ruby: Languages for writing tests: Ruby. source: README
Codeception: Languages for writing tests: PHP. source: README
Behat: Languages for writing tests: PHP. source: Docs: Behat documentation
Gauge: Languages for writing tests: Language runners for C# (.NET and .NET Core), Java, JavaScript, Python, Ruby. source: Docs: Plugins
Cucumber JVM: Languages for writing tests: Java (JVM). source: README
How to install
pip install pytest-bddQuestions
Is pytest-bdd open source?
Yes. pytest-bdd is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.
Is pytest-bdd maintained?
On 2026-09-22, the last commit to the default branch was on 2026-09-14, so the listed status is active. Rule: Last commit within 90 days of the fetch date.
How many GitHub stars does pytest-bdd have?
1,466 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.
What language is pytest-bdd written in?
The repository's primary language, as reported by the GitHub API, is Python.
How do I install pytest-bdd?
The README gives this command: pip install pytest-bdd
Sources
- GitHub REST API: repository, read
- GitHub REST API: commits, read
- GitHub REST API: tags, read
- GitHub REST API: contributors, read
- README, read