LoginSignup
1
0

More than 5 years have passed since last update.

手軽にファイルウォッチと変更時に走るコマンド定義できるWatchの紹介

Posted at

golang でTDDしようと思ってあれこれ調べてたら見つけました
gulpとかgruntよりも手軽にファイルウォッチャーが使えます

Watch(ファイルウォッチャー)の追加

$ go get github.com/eaburns/Watch
$ cd projectDir/
$ Watch -t go test

これでファイルの変更時にgo testが走るので
いちいちテストコマンドを打たなくて済む

エディター内のターミナルで立ち上げておけば
開発が多少楽になるんじゃないかと

参考

1
0
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
0