[wp-trac] [WordPress Trac] #54008: Fix Grunt tasks for PHPUnit
WordPress Trac
noreply at wordpress.org
Wed Aug 25 18:34:46 UTC 2021
#54008: Fix Grunt tasks for PHPUnit
------------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version: 5.8
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
------------------------------+---------------------
Changes (by azaozz):
* keywords: => needs-patch
Comment:
For example:
1. Install PHPUnit (if not already installed) and the PHPUnit Polyfills as
described here: [https://make.wordpress.org/core/handbook/testing
/automated-testing/phpunit/#setting-up-to-run-with-the-phpunit-phar-file-
without-composer Setting up to run with the PHPUnit PHAR file without
Composer].
2. Build WordPress: `npm run build` or `grunt`.
3. Run `phpunit` from the cli. Works as expected.
4. Run `grunt phpunit`. Fails with `Warning: Error: not found: composer
Use --force to continue.`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54008#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list