mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
add coverage
This commit is contained in:
parent
04fcfcd5be
commit
b5e48bb8da
9
.coveragerc
Normal file
9
.coveragerc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[run]
|
||||||
|
omit = */urls/*
|
||||||
|
*/__init__.py
|
||||||
|
*/tests.py
|
||||||
|
*/migrations/*
|
||||||
|
*urls.py
|
||||||
|
/usr/local/lib/*
|
||||||
|
/usr/lib/*
|
||||||
|
utils/xss_filter.py
|
||||||
@ -10,4 +10,5 @@ install:
|
|||||||
- python manage.py initadmin
|
- python manage.py initadmin
|
||||||
script:
|
script:
|
||||||
- flake8 .
|
- flake8 .
|
||||||
- python manage.py test
|
- coverage run manage.py test
|
||||||
|
- coverage report
|
||||||
|
|||||||
@ -5,3 +5,4 @@ jsonfield
|
|||||||
otpauth
|
otpauth
|
||||||
flake8-quotes
|
flake8-quotes
|
||||||
pytz
|
pytz
|
||||||
|
coverage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user