Skip to content

Running multisite tests results in no tests being executed #1326

@westonruter

Description

@westonruter

I just noticed that running composer test-multisite:plugins results in no tests being executed:

Command output
> test-php-multisite
> wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test-multisite:plugins

ℹ Starting 'composer test-multisite:plugins' on the tests-cli container. 

time="2024-07-01T18:34:29Z" level=warning msg="/home/runner/wp-env/affcfaaa23ba[11](https://github.com/WordPress/performance/actions/runs/9748988283/job/26906192989?pr=1325#step:10:12)c359507e851c8b72c2/docker-compose.yml: `version` is obsolete"
Composer could not detect the root package (wordpress/performance) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'auto-sizes'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.30
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'dominant-color-images'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.[30](https://github.com/WordPress/performance/actions/runs/9748988283/job/26906192989?pr=1325#step:10:31)
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'embed-optimizer'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.[38](https://github.com/WordPress/performance/actions/runs/9748988283/job/26906192989?pr=1325#step:10:39) by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.30
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'image-prioritizer'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.30
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'optimization-detective'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.30
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'performance-lab'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.30
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'speculation-rules'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.30
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
> phpunit '-c' 'tests/multisite.xml' '--verbose' '--testsuite' 'webp-uploads'
Installing...
Installing network...
Running as multisite...
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.30
Configuration: /var/www/html/wp-content/plugins/performance/tests/multisite.xml

No tests executed!
✔ Ran `composer test-multisite:plugins` in 'tests-cli'. (in 11s 11ms)

It appears that tests/multisite.xml never got updated to reflect the changes that were made to phpunit.xml.dist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssues for the overall performance plugin infrastructure[Type] BugAn existing feature is broken

    Type

    No type

    Projects

    Status

    Done 😃

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions