[wp-trac] [WordPress Trac] #53945: Local test workflow changes for installing Composer dependencies
WordPress Trac
noreply at wordpress.org
Wed Sep 1 23:42:48 UTC 2021
#53945: Local test workflow changes for installing Composer dependencies
------------------------------------------------+--------------------------
Reporter: hellofromTonya | Owner: johnbillion
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-testing-instructions | Focuses:
------------------------------------------------+--------------------------
Comment (by hellofromTonya):
Looking at the differences between the scripts:
`npm run test:php`:
{{{
node ./tools/local-env/scripts/docker.js run -T php composer update -W &&
node ./tools/local-env/scripts/docker.js run --rm phpunit phpunit
}}}
whereas `npm run test:php-composer`:
{{{
node ./tools/local-env/scripts/docker.js run -T php composer update -W &&
node ./tools/local-env/scripts/docker.js run --rm phpunit php
./vendor/bin/phpunit
}}}
the subtle difference of `run phpunit phpunit` vs `run phpunit php
./vendor/bin/phpunit`.
Running `npm run test:php` on one of my machines that doesn't have PHPUnit
phar installed nor PHPUnit installed via composer globally, it works. The
only instance of PHPUnit is in the vendor bin.
Why does it work? Hmm, I'll do more investigation and testing to discover
why.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53945#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list