Skip to content
SPECIFICTION
Get listed

Behave vs pytest-bdd

Behave

behave.readthedocs.io

pytest-bdd

pytest-bdd.readthedocs.io

Side by side

FigureBehavepytest-bdd
Price from—Free
Free plan—Yes
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published01
Spec score · BDD Testing Tools7.8 (#9)7.4 (#19)
InstallationThe documentation gives pip and source-distribution installation instructions and also describes installing from the GitHub repository.The documentation gives `pip install pytest-bdd` as the installation command.
PurposeBehave is a Python-style behavior-driven development tool that runs tests written in a natural-language style backed by Python code.pytest-bdd implements a subset of Gherkin to automate requirements testing and support behavior-driven development.
Scenario outlinesScenario outlines use example tables to run a scenario repeatedly with substituted values.Scenario outlines support parameterized cases, and the documentation describes multiple tagged example tables.

Plans

Behave

No plans published.

Behave pricing →

pytest-bdd

  • pytest-bddFree

pytest-bdd pricing →

In their own words

Behave

Behave has no write-up on Specifiction yet; its figures are above.

Visit behave.readthedocs.io

pytest-bdd

pytest-bdd is a Python package for automating requirements tests with behavior-driven development. It implements a subset of Gherkin and runs scenarios as pytest tests, without a separate test runner. Feature steps can reuse pytest fixtures through dependency injection, and step definitions can accept arguments parsed as strings, with parse or cfparse formats, or by regular expression. The scenarios helper can bind scenarios from feature files and folders, including recursive folder discovery. Scenario outlines support parameterized cases and tagged example tables; step functions can also receive Gherkin data tables as row lists and docstrings as strings. For browser tests, the documented example uses pytest-splinter to provide a browser fixture. Installation is via `pip install pytest-bdd`. The package is open source under the MIT License, free at free, and requires Python 3.10 or newer. Listed platforms are Linux, macOS, and Windows.

Visit pytest-bdd.readthedocs.io