[D7] Test dependencies are not automatically brought

Migrated issue

Reported by: fjgarlin

Related to !137 (merged) !133 (merged)

Problem/Motivation

Metatag module is trying to add GitLab CI to the different versions of the module. D10 went well, D7 not so much.
Tests are not being discovered: https://git.drupalcode.org/project/metatag/-/jobs/861117

The output comes from https://git.drupalcode.org/project/drupal/-/blob/7.x/scripts/run-tests.sh?ref_type=heads#L604

Proposed resolution

Investigate what's happening here and suggest a fix.

Related issue: Issue #3420192

Related issue: Issue #3397699

Related issue: Issue #3425971

Edited by drupalbot