Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
simpletest.module
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2015 at 08:42 UTC
Updated:
11 Nov 2025 at 15:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
duaelfrDigging a bit in the PHPUnit configuration I was not able to find a way to override the test files discovery.
However I found out with a new solution. We can add a test suite that includes all the PSR4 src directories but excludes those used for the other test suites.
See the attached patch.
Before:
After:
Comment #3
duaelfrAnd that's how we find the misplaced tests:

Comment #4
duaelfrJust to be sure about the performances impact, I tested that patch on a branch where #2575559: Link unit tests never run because defined in the wrong namespace was commited.
Before:
After:
Comment #6
mile23That's cool for using PHPUnit as the runner, but run-tests.sh and the UI abandon all the stuff in phpunit.xml for discovery. See: #2607866: [meta] DrupalCI/SimpletestUI/run-tests.sh/phpunit not in harmony
Comment #7
joelpittetAs this is a feature request and not a task I think best to move to 8.1.x
Comment #23
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #24
smustgrave commentedBelieve this is outdated with the switchover to gitlab. If I'm wrong please re-open