test and coverage script helper
This commit is contained in:
parent
d881679b7e
commit
3a1010e19a
2 changed files with 14 additions and 0 deletions
9
coverage.sh
Executable file
9
coverage.sh
Executable 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
5
runtest.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. env/bin/activate
|
||||||
|
|
||||||
|
./manage.py test
|
Loading…
Add table
Add a link
Reference in a new issue