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 -

  1. Clone repository and install standard install profile for d8.
    git clone --branch behat tayzlor@git.drupal.org:sandbox/tayzlor/2048281.git drupal_behat
  2. Copy core/behat.local.yml.example to core/behat.local.yml
  3. 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