Skip to content
SPECIFICTION
Get listed

Behat vs Serenity BDD

Behat

behat.org

Serenity BDD

serenity-bdd.github.io

Side by side

FigureBehatSerenity BDD
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
LinuxYesYes
iOS—Yes
Android—Yes
Self-hosted—Yes
Plans published11
Spec score · BDD Testing Tools7.7 (#10)7.5 (#18)

Plans

Behat

  • BehatFree

Behat pricing →

Serenity BDD

  • Serenity BDDFree

Serenity BDD pricing →

In their own words

Behat

Behat is free, open-source software for writing executable specifications in plain language on Linux. It is the PHP implementation of Cucumber and runs Gherkin feature files. Those files can describe complete application behavior and be exercised through browser automation, HTTP API calls, shell commands, databases, filesystems, or PHP code. Behat is intended to work with any PHP framework or without one. Installation uses Composer or a PHAR executable, both running with PHP. An extension system can expand or replace nearly any part of the tool, with extensions covering framework integrations, browser automation, test reporting, and data fixtures. Behat does not provide its own assertion tool, so an external assertion library is needed. It supports current PHP and third-party dependency versions; Symfony 8 support begins with Behat 4.0. Each major version receives security fixes for 24 months after the next major release.

Visit behat.org

Serenity BDD

Serenity BDD is a free, open-source library for automated acceptance and regression tests that produces illustrated narrative reports as living documentation. Its documented approaches include web testing with Selenium, REST API testing with RestAssured, Screenplay tests and executable specifications with Cucumber. Reports identify requirements covered and capture test steps, with optional screenshots. Serenity Playwright supports Chromium, Firefox and WebKit, and can produce interactive HTML reports, screenshots and HTML snapshots for investigating failures. Tests can follow Page Object or Screenplay design; Screenplay organizes work around actors, tasks, questions and targets. Playwright setup requires Java 17 or higher and Maven 3.8+ or Gradle. CI/CD guidance covers GitHub Actions, Jenkins and GitLab CI. BrowserStack and LambdaTest integrations enable cloud testing; the LambdaTest path requires an account. The manual includes mobile testing guidance, and Playwright can emulate mobile designs for responsive testing. JUnit 4 support is deprecated as of Serenity 5.0.0 and is planned for removal in 6.0.0.

Visit serenity-bdd.github.io