FREEDOM251

Freedom251 › Compare

Side by side

JGiven vs pytest-bdd

Both stand on bdd testing tools. Which one you can start free with, which one lets you read the code, and what each costs once you pay.

JGiven

Free plan LinuxSelf-hosted

Choose JGiven if your Java team wants behavior-driven scenarios, local execution, and reports generated from test output. Its free, Apache-licensed plan is listed as free. Look elsewhere if you require established Android or JUnit 5 support, since both are marked experimental.

Visit JGiven

pytest-bdd

Free plan LinuxMacWindows

pytest-bdd brings Gherkin-style scenarios into pytest, with fixture reuse and parameterized examples. Check the Python requirement and the subset of Gherkin it implements before adopting it.

Visit pytest-bdd

The facts

JGivenpytest-bdd
Free planYesYes
Open sourceNot publishedNot published
Runs onLinux, Self-hostedLinux, Mac, Windows
Lowest paid planFree or on requestFree or on request
Plans published11
MakerNot publishedNot published
Websitejgiven.orgpytest-bdd.readthedocs.io
On bdd testing tools#14 of 30#18 of 30

JGiven: what it does well

  • Write scenarios in standard Java without a separate language or IDE plugin.
  • Run scenarios with JUnit or TestNG without an extra test runner.
  • Create HTML reports from JSON output.
  • Reuse stage classes that can share state.
  • Parameterize scenarios and steps for data-driven tests.

What to know first

  • Android support is marked experimental.
  • JUnit 5 integration is marked experimental.

pytest-bdd: what it does well

  • Runs Gherkin scenarios as pytest tests
  • Reuses pytest fixtures through dependency injection
  • Supports scenario outlines and tagged example tables
  • Provides Gherkin tables and docstrings to step functions
  • MIT-licensed and free

What to know first

  • Requires Python 3.10 or newer
  • Implements only a subset of Gherkin
  • Browser testing example uses pytest-splinter

Alternatives to JGiven Alternatives to pytest-bdd The whole list