drupal-dtt

Run Drupal Test Traits tests against a live Drupal site.

67|13|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/edutrul/drupal-ai --skill drupal-dtt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-dtt
Source: https://github.com/edutrul/drupal-ai/tree/main/.claude/skills/drupal-dtt
Command: npx skills add https://github.com/edutrul/drupal-ai --skill drupal-dtt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers validate Drupal sites against real-world scenarios by running ExistingSite tests using Drupal Test Traits, including content creation, login flows, and page assertions.

Core Features & Use Cases

  • ExistingSiteBase tests for running on a live site
  • Create test content, login as users, submit forms, and verify outcomes
  • Automates cleanups and structured test scaffolding for Drupal projects

Quick Start

Run the DTT ExistingSite tests against a live Drupal site configured with DDEV and execute the test suite.

Frequently Asked Questions about drupal-dtt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run end-to-end Drupal tests against a live site?

End-to-end Drupal tests on a live site utilize the Drupal Test Traits ExistingSiteBase class to validate content creation, page rendering, and form submissions against real data and configurations.

What is the best way to automate integration testing for existing Drupal content and user accounts?

Integration testing for existing Drupal content uses Drupal Test Traits to validate real user logins, node creation, and form submissions, automating structured test scaffolding and cleanups on a live site.

Do I need a DDEV environment to execute Drupal Test Traits ExistingSite tests?

Yes, a running DDEV environment is required to execute ExistingSite tests, providing the live Drupal site infrastructure needed to validate real configurations and user accounts.

Can I test Drupal form submissions and user logins on real data?

Yes, you can test Drupal form submissions and user logins on real data using helpers like drupalLogin and submitForm within the ExistingSiteBase test scaffolding.

Why use ExistingSiteBase tests instead of standard Drupal unit tests?

ExistingSiteBase tests are used instead of standard tests to perform acceptance testing on a live Drupal site, validating real data, configurations, and content rendering outcomes directly.

What are the limitations of running Drupal Test Traits on live environments?

Running Drupal Test Traits on live environments requires careful cleanup of created nodes and user accounts, as tests directly modify real data within the running DDEV site infrastructure.