Create a new component for the test runner

Created on 28 August 2023, over 1 year ago
Updated 6 February 2024, 10 months ago

Problem/Motivation

lib/Drupal/Core/Test contains a mixture of different things - some are for test classes, some for the SUT in functional tests, and some for the test runner.

From slack:

> I think lib/Drupal/Core/Test is stuff the runner needs. which isnโ€™t a very good criteria, since the runner really should be its own component or at least somewhere other than inside core.

This issue is for creating a new component for the test runner. Classes from lib/Drupal/Core/Test should be moved to this new component.

Steps to reproduce

Proposed resolution

Identify which classes need to move to the new component. Possibly the following:

  • \Drupal\Core\Test\Exception\MissingGroupException
  • \Drupal\Core\Test\RunTests\TestFileParser
  • \Drupal\Core\Test\EnvironmentCleaner
  • \Drupal\Core\Test\EnvironmentCleanerInterface
  • \Drupal\Core\Test\JUnitConverter
  • \Drupal\Core\Test\PhpUnitTestRunner
  • \Drupal\Core\Test\SimpletestTestRunResultsStorage
  • \Drupal\Core\Test\TestDatabase
  • \Drupal\Core\Test\TestDiscovery
  • \Drupal\Core\Test\TestKernel
  • \Drupal\Core\Test\TestRunnerKernel
  • \Drupal\Core\Test\TestRun
  • \Drupal\Core\Test\TestRunResultsStorageInterface
  • \Drupal\Core\Test\TestStatus

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
PHPUnitย  โ†’

Last updated about 9 hours ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024