Testing with Behat in Drupal 8 for the beginners. Install and configure Behat, Mink and Seletium. First steps in BDD testing. composer.json { "require": { "drupal/drupal-extension": "~3.0", "guzzlehttp/guzzle": "^6.0@dev", "symfony/dependency-injection": "2.8.2", "symfony/event-dispatcher": "2.8.2", "behat/mink-extension": "*", "behat/mink-goutte-driver": "^1.2", "behat/mink-selenium2-driver": "^1.3" }, "config": { "bin-dir": "bin/" } } Behat.yml default: suites: default: contexts: - FeatureContext - Drupal\DrupalExtension\Context\DrupalContext - Drupal\DrupalExtension\Context\MinkContext - Drupal\DrupalExtension\Context\MessageContext - Drupal\DrupalExtension\Context\DrushContext extensions: Behat\MinkExtension: goutte: ~ selenium2: ~ #http://localhost:4444/mylink browser_name: chrome base_url: http://kharkivdrupal Drupal\DrupalExtension: blackbox: ~ api_driver: 'drupal' drupal: drupal_root: '/var/www/kharkivdrupal/drupal' region_map: content: '.region-content'