[wp-trac] [WordPress Trac] #44240: Avoid running full PHPUnit test suite for every PHP file change

WordPress Trac noreply at wordpress.org
Sun May 27 21:00:05 UTC 2018


#44240: Avoid running full PHPUnit test suite for every PHP file change
------------------------------+---------------------
 Reporter:  jeremyfelt        |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  5.0
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------
Changes (by jeremyfelt):

 * keywords:  needs-patch => has-patch
 * type:  defect (bug) => enhancement


Comment:

 [attachment:44240.diff] adds `phpunit` as a `_watch` task target when
 requested on the command line.

 * If `grunt watch`, PHP files are copied, all other `_watch` task targets
 will run.
 * If `grunt watch --phpunit --group=testgroup`, all `_watch` task targets
 will run, including PHPUnit, which will test against the specified groups.
 * If `grunt watch:phpunit --group=testgroup`, only the `phpunit` `_watch`
 task target will run. (existing behavior)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44240#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list