Description
Adding test coverage to your website and applications provides lots of benefits. For example, making sure requirements are met and preventing regressions from happening. One of the many approaches for testing is Behavior Driven Development (BDD). It can be accomplished in Drupal 8 using a series of tools: Selenium, Behat, Mink, and Drupal Extension.
This training is aimed at people who see the benefit of implementing BDD in their Drupal projects. Set up instructions and examples will be provided. In the process, the role that each tool plays will be explained. The relationship among them and how they build on each other will also be presented.
By the end of the workshop you will have learned how to use Selenium, Behat, Mink, and Drupal Extension to write BDD tests for Drupal 8.
You will learn:
- How to write non-javascript-enabled tests using driver Goutte driver.
- How to write javascript-enabled tests using the Selenium driver.
- How to write tests for Chrome using ChromeDriver.
- How to write tests for Firefox using GeckoDriver.
- How to configure Selenium to run tests from a virtual machine.
- How to configure Selenium to write tests from your host machine (no virtual machine).
- How to use phpunit and Facebook’s php-webdriver as an alternative approach to BDD testing.
Mauricio Dinarte
Drupal Developer @ Agaric