Side by side
Behat vs Godog
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 Linux
Behat offers a flexible, free way to turn plain-language specifications into executable checks for PHP projects. Users need to choose an external assertion library and account for the project's stated security-support window.
Visit Behat Free plan APISelf-hosted
Choose Godog for Go projects that use Gherkin and want executable behavior specifications alongside their test documentation. It offers local execution, concurrency, and `go test` integration at no cost. Teams relying on the `godog` CLI should account for its deprecated status and use the recommended `go test` route.
Visit GodogThe facts
| Behat | Godog | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux | API, Self-hosted |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | behat.org | github.com |
| On bdd testing tools | #9 of 30 | #13 of 30 |
Behat: what it does well
- Runs Gherkin specifications as executable tests.
- Feature files can cover browser and API behavior.
- Works with any PHP framework or without one.
- Composer and PHAR installation are documented.
- Extensions cover frameworks, reporting and fixtures.
What to know first
- Behat has no built-in assertion tool.
- The software is provided without warranty.
- Security fixes for each major version last 24 months after the next major release.
Godog: what it does well
- Runs suites through the standard `go test` command.
- Gherkin scenarios use Given, When and Then steps.
- Automatically tests specifications to keep documentation current.
- Configured concurrency runs scenarios concurrently.
- MIT-licensed and free to use locally.
What to know first
- The `godog` CLI is deprecated.
- The API may change before version 1.0.0.
