Problem/Motivation

#2260121: PHPUnit Tests namespace of modules is ambiguous with regular runtime namespace (+ Simpletest tests) broke run-tests.sh.

PIFR/PIFT is not broken, which is why we didn't roll that issue back.

But, looking at https://github.com/drupal/drupal/blob/8.0.x/core/modules/simpletest/src/...

TestDiscovery::findAllClassFiles() explicitly looks for "Drupal\\$extension\\", which now does not match any of these.

Proposed resolution

Fix

Remaining tasks

User interface changes

API changes

Comments

tim.plunkett’s picture

Status: Active » Needs review
StatusFileSize
new897 bytes
new845 bytes

Here are two possibilities.

Honestly, I'm not sure why we bother with preg_quote.

dawehner’s picture

This seems to be some forcing of using a standard?

tim.plunkett’s picture

Title: run-tests.sh ignores module phpunit tests (Drupal\Tests\$extension) » run-tests.sh ignores phpunit tests when using the --module flag
fabianx’s picture

RTBC for a) or b). They are equivalent.

As we cannot easily test the test system and this is an edge case, this should be good to go.

fabianx’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Can we at least get some code comment on what is going on here.

jhedstrom’s picture

Status: Needs work » Needs review
StatusFileSize
new670 bytes
new914 bytes

Adds a code comment. I went with option b from above that removes preg_quote(). Back to RTBC?

jhedstrom’s picture

Adds a code comment. I went with option b from above that removes preg_quote(). Back to RTBC?

fabianx’s picture

Status: Needs review » Reviewed & tested by the community

Code comment looks good to me.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.0.x. Thanks!

  • webchick committed 2e9db3e on 8.0.x
    Issue #2333747 by jhedstrom, tim.plunkett: Fixed run-tests.sh ignores...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.