Opened 3 years ago
Closed 3 years ago
#53015 closed enhancement (fixed)
Grunt tasks for PHPUnit should use the version installed by Composer
Reported by: | ocean90 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
53015.diff makes sure that the
composer test
command is used and all arguments are still passed to PHPUnit.