Skip to:

Opened 10 years ago

Closed 10 years ago

#2576 closed defect (bug) (fixed)

Update phpunit grunt task to not use deprecated util

Reported by: netweb's profile netweb Owned by: netweb's profile netweb
Milestone: 2.6 Priority: normal
Severity: normal Version: trunk
Component: Tools - Code Improvements Keywords:


Via #WP27343

Grunt is deprecating the Grunt.Util.* api (mentioned in the 0.4.3 announcement and the 0.4.2 announcement

Related #2542

Attachments (1)

2576.diff (884 bytes) - added by netweb 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @netweb
10 years ago

Two options:

Switch to grunt-phpunit

  • We need to wait for an upstream fix to allow -d to be set for multisite
  • grunt-phpunit is already in our package.jsonthough it is not currently used

Replace grunt.util.spawn with the backwards compatible recommended npm module

10 years ago

#2 @netweb
10 years ago

Upstream via 27343 we have gone with the method to include grunt-legacy-util

#3 @netweb
10 years ago

  • Owner set to netweb
  • Resolution set to fixed
  • Status changed from new to closed

In 5346:

Grunt is deprecating the Grunt.Util.* api, adding grunt-legacy-util will allow us to continue using grunt.util.spawn to spawn the multiple phpunit Grunt tasks.

  • Adds grunt-legacy-util to package.json
  • Requires fresh npm install to update dependencies
  • Props netweb. Fixes #2576
Note: See TracTickets for help on using tickets.