Side by side
Behave vs JGiven
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 LinuxMacWindows
Behave links readable feature scenarios with Python code and provides hooks, fixtures, and selection controls for test runs. Its documentation cautions that its comparison page may be out of date.
Visit Behave 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 JGivenThe facts
| Behave | JGiven | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux, Mac, Windows | Linux, Self-hosted |
| Lowest paid plan | Not published | Free or on request |
| Plans published | None | 1 |
| Maker | Not published | Not published |
| Website | behave.readthedocs.io | jgiven.org |
| On bdd testing tools | #10 of 30 | #14 of 30 |
Behave: what it does well
- Free and open source
- Scenario outlines use example-table rows
- Hooks and fixtures support test setup and cleanup
- Tags can select scenarios
- Works with Selenium WebDriver
What to know first
- The comparison page may be out of date
- Python step implementations are required
- Runs locally
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.
Alternatives to Behave Alternatives to JGiven The whole list