[wp-trac] [WordPress Trac] #42282: Execute PHPUnit continuously over watched files in local environments

WordPress Trac noreply at wordpress.org
Sat Oct 21 04:37:40 UTC 2017


#42282: Execute PHPUnit continuously over watched files in local environments
----------------------------------------+------------------------------
 Reporter:  iandunn                     |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Build/Test Tools            |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+------------------------------

Comment (by iandunn):

 @netweb, [attachment:42282.3.diff] adds support for arbitrary `--files`
 and `--group` parameters, and defaults to just failing with a usage
 example.

 So, you can now do things like:

 * `grunt watch:phpunit --files=wp-admin/includes --group=community-events`
 * `grunt watch:phpunit --files=wp-includes/http.php --group=http`

 If that looks good to you, then I think it's a good enough v1 that I'd
 feel comfortable committing it. Then, we can iterate to add more
 functionality, like specifying different config files for
 Multisite/AJAX/etc, and testing specific files or classes, instead of just
 groups.

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


More information about the wp-trac mailing list