Created
April 13, 2013 18:33
-
-
Save johbo/5379530 to your computer and use it in GitHub Desktop.
Test runner for TDD running in background and talking to you on MacBook combined with a small Guardfile - awesome tool in the train, no need to see the terminal
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
notification :off | |
guard 'shell' do | |
watch(/^myproject.*.py$/) {|m| `./testrun.sh` } | |
end |
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
#!/bin/bash | |
say "Running tests" | |
if ./manage.py test --noinput >&2 | |
then | |
say "Tests are passing" | |
else | |
say "This shit is failing!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the best thing I ever saw! We should have this after deployment!