Missing @group annotation

Created on 5 February 2024, over 1 year ago
Updated 30 April 2024, about 1 year ago

Problem/Motivation

Listing tests on the command line errors out.

root@9c1cef395e52:/var/www# php web/core/scripts/run-tests.sh --list

Available test groups & classes
-------------------------------

Drupal\Core\Test\Exception\MissingGroupException: Missing @group annotation in Drupal\Tests\config_ignore\Kernel\IgnoreSchemaTest in /var/www/web/core/lib/Drupal/Core/Test/TestDiscovery.php:344
Stack trace:
#0 /var/www/web/core/lib/Drupal/Core/Test/TestDiscovery.php(173): Drupal\Core\Test\TestDiscovery::getTestInfo('Drupal\\Tests\\co...', '/**\n * Test the...')
#1 /var/www/web/core/scripts/run-tests.sh(82): Drupal\Core\Test\TestDiscovery->getTestClasses(NULL)
#2 {main}
Drupal\Core\Test\Exception\MissingGroupException: Missing @group annotation in Drupal\Tests\config_ignore\Kernel\IgnoreSchemaTest in /var/www/web/core/lib/Drupal/Core/Test/TestDiscovery.php:344
Stack trace:
#0 /var/www/web/core/lib/Drupal/Core/Test/TestDiscovery.php(173): Drupal\Core\Test\TestDiscovery::getTestInfo('Drupal\\Tests\\co...', '/**\n * Test the...')
#1 /var/www/web/core/scripts/run-tests.sh(82): Drupal\Core\Test\TestDiscovery->getTestClasses(NULL)
#2 {main}root@9c1cef395e52:/var/www# vim web/modules/contrib/config_ignore/tests/src/Kernel/IgnoreSchemaTest.php 

Steps to reproduce

Install config_ignore and list tests using the cli via php web/core/scripts/run-tests.sh --list

Proposed resolution

Add the @group annotation to the IgnoreSchemaTest test class.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand Gold 20 minutes in the future

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