1-3 March 2019

City, University London

Case study - How we automate tests for multiple Drupal sites using a single script

Prerequisites

Basic knowledge about BDD or Behat, I will give a quick overview of it though

Session details

We want to follow industry standards with our websites and apps. One of them is to add test coverage to your website and applications as it provides lots of benefits.
This session is for people who want to implement BDD using Behat in their Drupal projects in general. Also is helpful for those who are working on a collection of similar sites like a multi-site setup or an ACSF setup where sites exhibit similar behavior.

Key takeaways

  • How to set up Behat to run tests for Drupal projects.
  • How to write non-javascript enabled tests using driver Goutte.
  • How to write javascript enabled tests using the Selenium driver.
  • How to configure behat.yml for multiple sites.
  • How to configure and create a PHP script to feed multiple URLs to Behat.
  • How to generate corresponding reports for each site the test runs on.
Speaker(s)
Session Track
Scheduled day
Saturday
Room
ELG04
Session Time
15.00 - 15.45

Keynote speakers

Rowan Merewood

Developer @ Google

Saturday AM

Preston So

Director of R&I @ Acquia

Sunday AM

Sally Young

Developer @ Lullabot

Closing Keynote

Drupal apprentices

The best people to train new developers are developers

The Drupal Apprenticeship Scheme will be running a London intake in March. If you are interested in hiring an apprentice or know someone who would benefit from the scheme please get in touch via the link below.

  • Created and run by experienced developers
  • Teaches core skills and best practice
  • Extensive support for businesses and teams

We are also really keen to hear from people who might be interested in mentoring, training and helping us to develop and review training materials to make sure they stay absolutely current and relevant.

Find out more

Join the Drupal Association

The Drupal Association unites a global open source community to build and promote Drupal.

The Association is a not-for-profit organization that relies on individuals and businesses to fund everything they do for Drupal — from drupal.org to DrupalCon and community programs.

Connect with us and support our mission-driven work.

Support the Drupal Association

Hosting provided by

platform.sh