Skip to content

Instantly share code, notes, and snippets.

@johbo
Created April 13, 2013 18:33
Show Gist options
  • Save johbo/5379530 to your computer and use it in GitHub Desktop.
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
notification :off
guard 'shell' do
watch(/^myproject.*.py$/) {|m| `./testrun.sh` }
end
#!/bin/bash
say "Running tests"
if ./manage.py test --noinput >&2
then
say "Tests are passing"
else
say "This shit is failing!"
fi
@fgoncalves
Copy link

This is the best thing I ever saw! We should have this after deployment!

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