Open nunomaduro opened 4 years ago
Hummm, maybe you can update the docs on that regard?
I've managed to get this working on Linux. On Windows (under WSL), it runs, but doesn't actually appear to watch the directories. 🤔
Maybe it would be an option to rewrite the plugin and use yosymfony/resource-watcher
like spatie/phpunit-watcher
does. Then the fswatch dependency can be dropped.
What do you think?
Would be open for providing an implementation for that.
@fetzi, I guess we could 🤷🏻 That would resolve the issue that fswatch
doesn't seem to have pre-compiled binaries for Windows.
Are there any performance issues with that package? 🤔 Just wondering, if it uses PHP under the hood, whether it'd struggle with watching a large set of directories/files.
I don't see performance issues for the majority of projects and yes it uses PHP under the hood.
Nice! Feel free to implement a change for it. 👍🏻
I'm having a lot of issues using this plugin on ubuntu / docker. It triggers infinite runs because phpstorms triggers access to the files just by reading them, so this becomes unusable.
The good news is that you can still use the https://github.com/spatie/phpunit-watcher , and it gives a better DX by having interactive filtering. Maybe this plugin should fork spaties one. If anyone want to try it, just set the binary Path to pest on the .phpunit-watcher
:
phpunit:
binaryPath: vendor/bin/pest
directories:
- src
- database
- resources
- tests
I should be able to test it on Linux (Ubuntu) and Windows. Windows is a pain to install
fswatch
on so far though.