mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 16:41:56 +00:00
add coverage requirement and run test shell script
This commit is contained in:
parent
c72624e2d5
commit
76aba7f0e7
@ -5,4 +5,5 @@ django-redis-sessions
|
||||
djangorestframework
|
||||
django-rest-swagger
|
||||
celery
|
||||
gunicorn
|
||||
gunicorn
|
||||
coverage
|
2
tools/runserver.sh
Normal file
2
tools/runserver.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
python manage.py runserver
|
4
tools/runtest.sh
Normal file
4
tools/runtest.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
coverage run --source='.' manage.py test
|
||||
nose html
|
||||
open htmlcov/index.html
|
Loading…
Reference in New Issue
Block a user