Skip to content
SPECIFICTION
Get listed

Ginkgo vs pytest-bdd

Ginkgo

onsi.github.io

pytest-bdd

pytest-bdd.readthedocs.io

Side by side

FigureGinkgopytest-bdd
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published11
Spec score · BDD Testing Tools8.2 (#7)7.4 (#19)
LicenseThe repository states that Ginkgo is MIT-Licensed.PyPI lists the package as licensed under the MIT License.
PurposeGinkgo is a testing framework for Go for writing expressive tests, including unit, integration, acceptance, and performance tests.pytest-bdd implements a subset of Gherkin to automate requirements testing and support behavior-driven development.

Plans

Ginkgo

  • GinkgoFree

Ginkgo pricing →

pytest-bdd

  • pytest-bddFree

pytest-bdd pricing →

In their own words

Ginkgo

Ginkgo is a free, MIT-licensed testing framework for Go that helps developers write expressive specifications. Its BDD-style DSL uses nested Describe, Context, and When containers, along with setup, cleanup, and spec nodes. Developers can use it for unit, integration, and performance specs. Independent specs can run in parallel or in reproducibly randomized order. The bundled ginkgo command can generate, run, filter, and profile suites, and watch for changes to rerun specs. Reporting can produce machine-readable output in multiple formats and supports custom reporting infrastructure. Ginkgo builds on Go’s testing foundation and is designed to pair with the Gomega matcher library. Its GinkgoT() and GinkgoTB() interfaces also allow use of Go testing libraries such as Testify and Gomock. Documentation lists completions for Sublime Text and VS Code, plus a VS Code extension for running specs. The current supported major version is V2; V1 is no longer supported. Ginkgo states compatibility with Go versions currently supported under Go’s release policy, N and N−1.

Visit onsi.github.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