Watch file change and run test.
Current support is only test.
- watch files in specific directory, and run test for only change target when detect changes.
- when change test source(
foo_test.go
), run test only in this file. - when change no test source(
bar.go
), run test only in companion test file(bar_test.go
).
- when change test source(
- watch single directory or recursive.
On go 1.12 or later with go modules, you can install with go get
go get github.com/meian/gowatch
Watch directory change and trigger test.
# watch current directory(no recursive)
$ gowatch test
# watch foo directory and subdirectories
$ gowatch test -r foo
All options shows with gowatch test -h