How to use Behat with Drupal 8 for writing tests in a stylized way

RavindraSingh
jyoti.singh

We know Behat (Behavioral Driven Development) is an open source behavior-driven development framework for PHP 5.3 and 5.4 and with Drupal 8 you can write SimpleTest using Behat.

Moreover, Behat allows you to describe the behavior of a website in plain, but stylized language, and then turn that description into an automated test that will access the site and perform each step you describe.

So we all know what is Behat and what it can do, but how to use it? You’ll get to know in this chat session:

In this talk, we will demonstrate:

  • Behat configuration with Drupal 8​

  • Behat test execution from  command line (Drush)

  • A real world example

  • Adding up multiple tests together into feature testing forms

  • How to minimize regressing testing using Behat

Session Track

Coding and Development

Experience Level

Intermediate

Drupal Version