[wp-trac] [WordPress Trac] #50412: Add support for common PHPUnit arguments when watching
WordPress Trac
noreply at wordpress.org
Wed Jun 17 16:32:14 UTC 2020
#50412: Add support for common PHPUnit arguments when watching
------------------------------+-----------------------------
Reporter: iandunn | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
r42760 added the `watch:phpunit` task, but it only supports the filtering
tests by the group. In ticket:42282#comment:18 @soulseekah asked about
adding support PHPUnit filters, etc.
That seems very desirable, and there are other PHPUnit arguments that
would be useful too, like filtering by test name, and file.
Rather than building all that from scratch, though, we could switch to
using [https://github.com/spatie/phpunit-watcher phpunit-watcher]
instead. It already has support for all of those, plus an interactive mode
where you can switch between them at will, rather than having to restart
the task with different args.
I've been using it lately and it seems to work well^1^.
@netweb, it looks like you've contributed to it in the past; do you think
it'd work well for Core?
[[br]][[br]]
![1] Since Core is such a large repo, we'd probably need to wait until
[https://github.com/spatie/phpunit-watcher/pull/116 #116-phpunit-watcher]
is merged.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50412>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list