Skip to content

Instantly share code, notes, and snippets.

@n1k0
Last active December 14, 2015 11:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save n1k0/5082747 to your computer and use it in GitHub Desktop.
Save n1k0/5082747 to your computer and use it in GitHub Desktop.
A simple Makefile to run CasperJS tests for some Django project. Because sometimes, it doesn't have to be complicated.
casper:
make killserver
python manage.py runserver 9999 &
sleep 1
-casperjs test tests/casper/
make killserver
killserver:
ps aux|grep "python manage.py runserver 9999"|grep -v grep|awk '{print $$2}'|xargs kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment