Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Last active October 18, 2024 10:59
Show Gist options
  • Save stuart-warren/e9e49162aca164dc999be13964e09f9b to your computer and use it in GitHub Desktop.
Save stuart-warren/e9e49162aca164dc999be13964e09f9b to your computer and use it in GitHub Desktop.
Monitor files for changes and run test command (TDD)
$ 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
@stuart-warren
Copy link
Author

stuart-warren commented Feb 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment