Run Tests on Directory Save
Want to run your tests on every file save?
brew install wait_on
Then use wait_on
to wait until a git tracked file is changed.
git ls-files --modified --other --deleted --cached --exclude-standard
Then wrap the whole thing in an infinate loop, with your testing command before.
while true; <testing command>; wait_on -h (git ls-files --modified --other --deleted --cached --exclude-standard); end
bash
while true; do wait_on -h $(git ls-files --modified --other --deleted --cached --exclude-standard); <testing command>; done
Written by Saul Shanabrook
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#