Menu

1 / 6

Inside the Pyramid: Guiding Principles for a Faster Drupal Test Suite

Drupal.org aggregator·10 days ago
#cYASYJWt
#planetdrupal#tag1#test#code#module
Long article (1378 words) — no AI summary yet.
Reading 0:00
15s threshold

Francesco Placella - Senior Architect | Technical Lead

November 25, 2026

Share

Getting in Shape

If I did a good job so far, you are now supposed to be all fired up and looking forward to a bright future of pyramids and skyscrapers, which brings us to the how. It won’t be easy or effortless but, of course, I think it can be done, through the following steps:

Define clear guidelines for both production and test code, updating AI best practices accordingly.

Improve Unit testability across core, focusing especially on the entity system.

Add new core test tools letting us implement lightweight Integration tests relying on UnitTestCase .

Push down existing core test coverage towards the base as much as possible.

Make core, contrib, and custom code adopt the guidelines at the same time: no need to wait for core to be done before starting.

Some of these steps can be worked on in parallel, but coming up with guidelines is the key one, so that is what I will focus on here.

The first step in coming up with…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.