Skip to content

Instantly share code, notes, and snippets.

@jacqueswww
Last active May 9, 2016 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacqueswww/c866caf0aae4cb0ffa6131dd5c755078 to your computer and use it in GitHub Desktop.
Save jacqueswww/c866caf0aae4cb0ffa6131dd5c755078 to your computer and use it in GitHub Desktop.
Run tests on changes.
#!/bin/bash
TEST_COMMAND="python manage.py test --keepdb --no-input --failfast "$1
$TEST_COMMAND
while find ./ -name '*.py' | inotifywait --fromfile - -e modify;
do
$TEST_COMMAND
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment