Drupal Test Traits - Learn by example

24 Mar 2026, 2:30 pm (UTC)
50 Minutes

Drupal Test Traits (DTT) is an open-source project started by the Commonwealth of Massachusetts. The session examines real tests from the project and how DTT works under the hood, including tests for mass.gov, a large content-centric site where tests check content layout and icons.

After using Behat for more than a year to test against the mass.gov database, the project replaces it with DTT. DTT reuses Drupal core’s testing system to work with a site’s content rather than an empty site, and supports client-side interactions alongside traditional browsing.

Other Sessions