Speed up ElementTest

Created on 22 August 2024, 3 months ago
Updated 5 September 2024, 2 months ago

Problem/Motivation

This is a very simple test but none of the methods change state, so it's an easy candidate to convert to 'calling protected methods from one public one'.

Steps to reproduce

From my local:

Time: 00:23.463, Memory: 4.00 MB

OK (10 tests, 104 assertions)
Time: 00:04.055, Memory: 6.00 MB

OK (1 test, 95 assertions)

The test can take over a minute on Drupal CI, e.g. https://git.drupalcode.org/project/drupal/-/jobs/2512850 so could be more dramatic on there.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.3

Component
System 

Last updated 8 days ago

No maintainer
Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024