Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
This project is a proof of concept for integrating Drupal 8 Core with Behat.
Screencast
For an instructional walkthrough, please watch the screencast overview of this fork
Steps to use
git checkout 8.x
cd path/to/drupal/docroot
composer update
- Install drupal (e.g., via web browser)
drush en behat
- download selenium standalone server
- start the selenium server locally
java -jar path/to/selenium-server-standalone-2.39.0.jar
- update
sites/[yoursite]/files/behat.yml
and setbase_url
to your site'sbase_url
drush brun
execute behat tests from drupal docroot./core/scripts/run-behat-tests.sh
Dev Goals
Update core composer.json to include required behat librariesAdd example .feature file to coreAdd behat.yml file for corePopulate required, site-specific behat.yml values on installProvide discovery mechanism for .feature files and subcontexts provided by contributed modules- Provide discovery mechanism for site specific yml files (i.e., for multisite installations)
- Provide build files for popular build tools, like Jenkins
Create drush command that can run Behat tests against both core and contrib features- Work on testbot integration
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Created by grasmash on , updated