Opened 3 years ago
Last modified 3 years ago
#54008 new defect (bug)
Fix Grunt tasks for PHPUnit
Reported by: | azaozz | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Build/Test Tools | Keywords: | needs-patch |
Focuses: | Cc: |
Description
#53015, [51016] made it impossible to use global installations of PHPUnit. Now Grunt requires to have PHPUnit (and Composer?) installed locally in every directory that needs to be tested.
This causes grunt test
and grunt phpunit
to fail when PHPUnit and the PHPUnit Polyfills are installed globally, like when using wp-env/Docker image.
Change History (5)
This ticket was mentioned in Slack in #core by chaion07. View the logs.
3 years ago
#3
@
3 years ago
- Milestone changed from 5.9 to 6.0
With 5.9 Beta 1 in 2 days and no activity on this ticket, moving it to 6.0.
This ticket was mentioned in Slack in #core by mike. View the logs.
3 years ago
Note: See
TracTickets for help on using
tickets.
For example:
npm run build
orgrunt
.phpunit
from the cli. Works as expected.grunt phpunit
. Fails withWarning: Error: not found: composer Use --force to continue.
.