From 13c1ec10851e25b747aee4b2536703a54c024aad Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 6 Oct 2022 14:53:30 +0100
Subject: [PATCH] Issue #3313833 by Wim Leers, longwave, alexpott: Make it easy
 to run only tests for one specific core module

---
 core/drupalci.yml | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/core/drupalci.yml b/core/drupalci.yml
index 94aa2ad22ff0..cd92d8102d72 100644
--- a/core/drupalci.yml
+++ b/core/drupalci.yml
@@ -1,6 +1,11 @@
 # This is the DrupalCI testbot build file for Drupal core.
 # Learn to make one for your own drupal.org project:
 # https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing
+_phpunit_testgroups_to_execute: &testgroups
+  # Default: all of Drupal core's test suite runs.
+  testgroups: '--all'
+  # Alternative: run only the tests for one particular module.
+  # testgroups: '--module ckeditor5'
 build:
   assessment:
     testing:
@@ -15,32 +20,32 @@ build:
       # deprecated code.
       run_tests.phpunit:
         types: 'PHPUnit-Unit'
-        testgroups: '--all'
         suppress-deprecations: false
         halt-on-fail: false
+        <<: *testgroups
       run_tests.kernel:
         types: 'PHPUnit-Kernel'
-        testgroups: '--all'
         suppress-deprecations: false
         halt-on-fail: false
+        <<: *testgroups
       run_tests.build:
         # Limit concurrency due to disk space concerns.
         concurrency: 15
         types: 'PHPUnit-Build'
-        testgroups: '--all'
         suppress-deprecations: false
         halt-on-fail: false
+        <<: *testgroups
       run_tests.functional:
         types: 'PHPUnit-Functional'
-        testgroups: '--all'
         suppress-deprecations: false
         halt-on-fail: false
+        <<: *testgroups
       run_tests.javascript:
         concurrency: 15
         types: 'PHPUnit-FunctionalJavascript'
-        testgroups: '--all'
         suppress-deprecations: false
         halt-on-fail: false
+        <<: *testgroups
       # Run nightwatch testing.
       # @see https://www.drupal.org/project/drupal/issues/2869825
       nightwatchjs: {}
-- 
GitLab