repositorypackage
0.0.0-20211105195753-c450bf1a0c23
Repository: https://github.com/meian/gowatch.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
gowatch
Watch file change and run test.
Current support is only test.
Feature
- 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.
Install
On go 1.12 or later with go modules, you can install with go get
go get github.com/meian/gowatch
Usage
test
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