Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Playground development sandbox for integrating Behat BDD with Drupal core.
Currently this has behat integrated into the /vendor dir plus some conversions for some core simpletests.
At the moment we have the following tests -
- ban.feature
- color.feature
- contact.feature
Instructions -
- Clone repository and install standard install profile for d8.
git clone --branch behat tayzlor@git.drupal.org:sandbox/tayzlor/2048281.git drupal_behat - Copy core/behat.local.yml.example to core/behat.local.yml
- Edit behat.local.yml and change the drupal admin username and password to your superuser username and password, and add in the absolute path to your drupal site root e.g. /var/www/html/drupal_behat
Note* you will need to enable the ban module for it's tests to run (drush en ban -y)
To run the tests, from the Drupal site root (on the command line) -
core/vendor/bin/behat --config=core/behat.yml
Related links
#1551600: DBehave!
http://drupal.org/project/doobie
https://github.com/jhedstrom/drupalextension
https://github.com/tayzlor/drupalextension (forked with support for creating users with permissions - used in this repository and some tweaks to get it running with d8 properly)
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projectsObsolete
Use of this project is deprecated.- Created by tayzlor on , updated