Continuous Testing And Integration In Drupal: 2026 Guide

Drupal 10 reaches end of life on 9 December 2026, and sites still on it will need to move to a newer major version. A site with automated tests and a CI pipeline can make that move with far less guesswork, because every change gets checked the same way each time.
This guide explains what continuous integration (CI) and continuous testing mean for a Drupal project, which test types Drupal ships with, how Drupal.org runs CI for its own modules, and how to set up something similar for your site. Dates and tool names are current as of November 2026.
Why This Matters In December 2026
- Drupal 10 ends on 9 December 2026, and 10.6.x is its last minor version.
- Drupal 11 was released on 2 August 2024 and is supported until early December 2028.
- Drupal 12.0.0 and 11.5.0 are scheduled for the week of 7 December 2026, and the same week security support ends for 11.3.x and 10.6.x. The schedule notes there is no guarantee that every release window will be used (Drupal.org release schedule).
A test suite tells you quickly what an upgrade broke. Without one, you find out from users.
What Continuous Integration And Continuous Testing Mean
Continuous integration means developers merge changes into a shared repository often, and an automated build runs on every change. Continuous testing means that build includes automated tests, so a failing change is flagged within minutes while the author still remembers what they touched.
In practice, a push or merge request triggers a pipeline that installs the project, checks the code against standards, runs the tests and reports the result. If everything passes, the same pipeline can deploy to a staging site.

The Test Types Drupal Gives You
Drupal core documents these test types, each with its own base class (api.drupal.org):
- Unit (
UnitTestCase): tests one class in isolation, with no Drupal environment and no browser. These are the fastest. - Kernel (
KernelTestBase): tests code that depends on Drupal services and the database, in a minimal installation. - Browser (
BrowserTestBase): runs against a full Drupal installation with a simulated browser that does not execute JavaScript. - Browser with JavaScript (
WebDriverTestBase): the same full installation, with a real browser that runs JavaScript. - Build (
BuildTestBase): tests build processes such as live updates or Composer project templates. - Nightwatch: JavaScript-only tests, kept in
core/tests/Drupal/Nightwatch.
Write as many unit and kernel tests as you can, since they run fastest, and keep the browser tests for the flows that need them.
One change to watch: in October 2025 Drupal core decided to replace Nightwatch with Playwright for most JavaScript tests and to move accessibility checks to PHPUnit with Axe. The follow-up work to migrate the tests was still open at the time of writing, so Nightwatch is still in core (Drupal.org policy issue). If you are starting a new JavaScript test suite, check that issue first.
How Drupal.org Runs CI
Drupal.org retired its old DrupalCI system, and the infrastructure was disabled on 1 July 2024. GitLab CI is now enabled for every project on Drupal.org (Drupal.org GitLab CI docs). To use it, add a .gitlab-ci.yml file to the project root, based on the Drupal Association template. The pipeline starts on the first commit, and by default it runs on merge request events, tags, commits to the default branch and manual runs.
The shared GitLab Templates project defines the jobs:
- Build: composer, drupal cms, pages
- Validation: composer-lint, cspell, eslint, phpcs, phpstan, secret detection, stylelint
- Testing: nightwatch, phpunit, test-only changes, upgrade status
The upgrade status job is the one to look at before a major upgrade.
Set Up CI For Your Own Drupal Site
- Keep the code in Git and run the pipeline on every push and merge request.
- Install with Composer in the pipeline, so the build matches what you deploy.
- Check coding standards. The
drupal/coderpackage gives PHP_CodeSniffer the Drupal ruleset, run withphpcs --standard=Drupal. - Run static analysis. PHPStan with the
mglaman/phpstan-drupalextension catches errors without running the code. - Run PHPUnit for your custom modules, starting with unit and kernel tests, then add browser tests for key flows such as login and checkout.
- Deploy to staging only when all of the above pass, and keep production behind a manual approval.
- Fix a red build first. If the mainline build breaks, repairing it comes before new work.
On the tool, use the CI system your code already lives in. GitLab CI is the closest match to Drupal.org's own templates, and GitHub Actions and Jenkins can run the same commands.
Common Mistakes
- Browser tests only. A suite made entirely of browser tests is slow, and slow suites get skipped. Lean on unit and kernel tests.
- Tests that depend on live data. Build the content a test needs inside the test, so it passes on a fresh install.
- Ignoring warnings. Deprecation notices in custom code become errors in the next major version. Fix them while they are warnings.
- Testing on a different PHP version than production. Run the pipeline on the PHP version you deploy.
Next Steps
Start with one pipeline that installs the site, runs phpcs and runs the tests you already have. Add jobs one at a time, and run the upgrade status check before you plan the move off Drupal 10.
If you want help setting up CI or planning a Drupal upgrade, see our Drupal development services and our DevOps services. You can also read why Drupal is known as a secure CMS and our list of must-have Drupal modules. Contact us with your Drupal version and what you need.
Related Articles

What Is Drupal Configuration Synchronizer?
Drupal’s strong configuration Synchronization system assists developers in easily importing and exporting setups between multiple Drupal website instances. The synchronizer will assist you in several ways, such as allowing you to manage and deploy configuration changes across different environments in a structured and efficient manner. Now, if you are looking for best practices or strategies […]

The Hourly Rate Of Hiring Drupal Developers From India
Do you know total of 469,323 live Drupa l websites are running across the globe? If you too have a Drupal website or are planning to create one and want to know the hourly rate of Hiring Drupal developers from India, then you are at the right place. Check out the content of this post […]

What Are Action Plugins In Drupal? Know Everthing Here 2025
Explore the versatile landscape of Drupal’s Action Plugins in 2024, uncovering their role in extending functionality and promoting code reuse. From seamless integration to scalability, our guide delves into the intricacies of Action Plugins, providing a comprehensive understanding of how they enhance the development process within the dynamic Drupal framework. Let’s delve deeper into the […]

A Complete Guide On Web-Front Module For Drupal 10
Drupal’s most potent and versatile form builder and submission manager is the Webform module. It enables site builders to quickly and simply create complicated forms. It allows you to customize it to meet your needs and comes with a set of default settings. Visit this wonderful blog: Drupal 9 Webform Module. A succinct tutorial to […]

How To Handle Custom Drupal Migration Using SQLBase?
The field of Drupal migrations is a hive of activity. On November 1, 2023, Drupal 9 reached its End of Life (EOL). The final extension for Drupal 7 is January 2025, when it will go EOL. Drupal 10.1.6, the most recent version, was released on November 1, 2023, following the release of Drupal 10 in […]

Step-By-Step Guide To Update Drupal Core With Composer
Updating the Drupal core and adding modules to the most recent version that has been released is best practice. Let’s get started with updating the core of Drupal. Although there are several approaches to upgrading the core, we are only talking about it with the composer at this time. Using Composer is also advised when […]





