[wp-trac] [WordPress Trac] #57189: The PHP tests initialize very slowly in wp-env
WordPress Trac
noreply at wordpress.org
Wed Nov 23 20:17:14 UTC 2022
#57189: The PHP tests initialize very slowly in wp-env
------------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+---------------------
Comment (by azaozz):
Seems an easy fix here would be to split the "Composer install" part from
the actual "run PHPUnit" part in `npm run test:php`. Something like:
{{{
"test:php-i": "node ./tools/local-env/scripts/docker.js run -T php
composer update -W && node ./tools/local-env/scripts/docker.js run php
./vendor/bin/phpunit",
"test:php": "node ./tools/local-env/scripts/docker.js run php
./vendor/bin/phpunit",
}}}
A better way would be to have an equivalent of a lock file and run
Composed only once per week.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57189#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list