[wp-trac] [WordPress Trac] #53015: Grunt tasks for PHPUnit should use the version installed by Composer

WordPress Trac noreply at wordpress.org
Sat Apr 10 12:13:36 UTC 2021


#53015: Grunt tasks for PHPUnit should use the version installed by Composer
------------------------------+----------------------------
 Reporter:  ocean90           |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+----------------------------
 PHPUnit was added as a Composer dev dependency in [47881] which is working
 fine when using `composer run test`.
 But any Grunt task which is using `phpunit` will fail if a developer
 doesn't have PHPUnit installed globally. Examples are `npm run grunt
 phpunit` or `npm run grunt precommit`.

 This should be changed to make it easier to run such tasks without having
 to figure out how and which PHPUnit version needs to be installed. Similar
 is already done for the `format:php` task.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53015>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list