LoginSignup
1
1

More than 5 years have passed since last update.

watchmedoを使ってファイルの変更を監視して、テスト実行する

Posted at

phpunitのテストをいちいちコマンド実行して確認するのめんどくさいなぁ。。。と思ってググったら
watchmedoなるものが出てきたので使ってみた。

$ pip install watchdog
$ watchmedo shell-command --interval=5 --patterns="*.php" -R -D --command='clear; phpunit' .

こんな感じで動いたー。

しかし、vimでautosave使っていると、ちょっと変更する度に視界の一部がチカチカ動いているのをみると、気になって仕方がないw

ので使わないであろう。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1