Back to top

Getting up and running super quick with behat and Drupalextension

I recently gave a presentation about Behat and automated testing of code at the Denver Drupal Meetup. It's basically the style of testing that we've embraced most strongly at

Here are the slides:

I also mentioned a set of steps to get up and running. So, here goes:

  1. Create a sites/all/tests directory with this composer.json file in it:

    "require": {
    "drupal/drupal-extension": "*"
    "config": {
    "bin-dir": "bin/"
  2. Install composer on your system
  3. Run composer install in the sites/all/tests/ directory
  4. Run bin/behat --init
  5. Create your features in the features/ directory
  6. Run tests with bin/behat
People Involved: