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.
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 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-bddThe facts
| JGiven | pytest-bdd | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux, Self-hosted | Linux, Mac, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | jgiven.org | pytest-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