Last active
October 18, 2024 10:59
-
-
Save stuart-warren/e9e49162aca164dc999be13964e09f9b to your computer and use it in GitHub Desktop.
Monitor files for changes and run test command (TDD)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install fswatch | |
$ alias pywatch='fswatch -r -0 --monitor=poll_monitor $(find . -name *.py) | xargs --null -n1 -I{}' | |
$ alias gowatch='fswatch -r -0 --monitor=poll_monitor $(find . -name *.go) | xargs --null -n1 -I{}' | |
$ pywatch python setup.py test | |
$ gowatch go test -cover |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://emcrisostomo.github.io/fswatch/doc/