Introducing Drupal Test Traits

moshe weitzman

Join us as we introduce Drupal Test Traits (DTT), a new open source project started by the Commonwealth of Massachusetts.

mass.gov is large, content-centric site. Most of our tests click around and assert that content is laid out properly, the right icons are showing, etc. In order to test this stuff, we need the mass.gov database - testing on an empty site won't do. The traditional tool for testing a site using an existing database is Behat.  So we used Behat for over a year and found it getting more and more awkward. 

DTT reuses the awesome Drupal 8 core testing system, so it works with your site's content, as opposed to an empty site. It supports testing client side interactions in addition to traditional browsing.

Attendees will benefit from a basic familiarity with functional testing of PHP projects. At the end of this session, you will have another tool to test your content-centric sites.

 

Program tags

devops, testing

Experience Level

Intermediate

Drupal Version