Godog vs pytest-bdd
Godog
github.compytest-bdd
pytest-bdd.readthedocs.ioSide by side
| Figure | Godog | pytest-bdd |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| API | Yes | — |
| Self-hosted | Yes | — |
| Plans published | 1 | 1 |
| Spec score · BDD Testing Tools | 7.7 (#12) | 7.4 (#19) |
| License | Godog and Gherkin are licensed under the MIT License. | PyPI lists the package as licensed under the MIT License. |
| Purpose | Godog is the official Cucumber behavior-driven development framework for Golang. | pytest-bdd implements a subset of Gherkin to automate requirements testing and support behavior-driven development. |
Plans
In their own words
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.