Skip to content

Drupal Testing

I need to... Guide
Understand which testing frameworks are available Testing Framework Overview
Choose the right test type for my module Framework Selection Decision Matrix
Write tests for pure PHP logic PHPUnit Unit Tests
Write tests for services and database integration PHPUnit Kernel Tests
Write tests for admin forms and user workflows PHPUnit Functional Tests
Write tests for AJAX and JavaScript interactions PHPUnit FunctionalJavascript Tests
Measure performance impact of my module Gander Performance Testing
Plan testing coverage for a new module Progressive Testing Strategy
Set up PHPUnit configuration Testing Infrastructure Setup
Follow security and performance best practices Best Practices & Anti-Patterns
Run tests from the command line Running and Debugging Tests