test and coverage script helper

This commit is contained in:
Élie Bouttier 2014-08-10 17:45:25 -07:00
parent d881679b7e
commit 3a1010e19a
2 changed files with 14 additions and 0 deletions

9
coverage.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# you must install coverage before executing this script
# pip install coverage
. env/bin/activate
coverage run --source=issue --omit=issue/migrations/*.py manage.py test
coverage report

5
runtest.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
. env/bin/activate
./manage.py test