add coverage

This commit is contained in:
virusdefender 2017-01-24 13:28:32 +08:00
parent 04fcfcd5be
commit b5e48bb8da
3 changed files with 12 additions and 1 deletions

9
.coveragerc Normal file
View File

@ -0,0 +1,9 @@
[run]
omit = */urls/*
*/__init__.py
*/tests.py
*/migrations/*
*urls.py
/usr/local/lib/*
/usr/lib/*
utils/xss_filter.py

View File

@ -10,4 +10,5 @@ install:
- python manage.py initadmin
script:
- flake8 .
- python manage.py test
- coverage run manage.py test
- coverage report

View File

@ -5,3 +5,4 @@ jsonfield
otpauth
flake8-quotes
pytz
coverage