Added coverage support on testing

This commit is contained in:
Adolfo Gómez García 2022-08-16 00:18:32 +02:00
parent fe712d27b7
commit 0ed1f3ccee
3 changed files with 8 additions and 1 deletions

View File

@ -4,3 +4,4 @@
/uds/static/clients/ /uds/static/clients/
/*.sqlite3* /*.sqlite3*
.hypothesis .hypothesis
htmlcov

5
server/src/coverage.ini Normal file
View File

@ -0,0 +1,5 @@
[run]
[report]
[html]

View File

@ -1,3 +1,4 @@
[pytest] [pytest]
DJANGO_SETTINGS_MODULE = server.settings DJANGO_SETTINGS_MODULE = server.settings
python_files = tests.py test_*.py *_tests.py python_files = tests.py test_*.py *_tests.py
addopts = --cov --cov-report html --cov-config=coverage.ini