Skip to content

Commit dec260c

Browse files
committed
add cov report as html
1 parent 8148e53 commit dec260c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ venv/
22
*.pyc
33
.idea
44
coverage_report
5+
htmlcov/
56
.vscode/
67
static/
78
profile_images/

manage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@
2929
# we can also use python -m django runserver but for this we need to have ENV variabale set
3030
# we can also use django-admin runserver but for this we need to have ENV variabale set
3131
# export DJANGO_SETTINGS_MODULE=django_app.settings and also export the python path export PYTHONPATH=. or source the env.sh file
32+
33+
34+
#pytest --reuse-db --cov --nomigrations

pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[pytest]
22
DJANGO_SETTINGS_MODULE = django_app.test_settings
33
testpaths = testing
4-
python_files = tests.py test_*.py *_tests.py
4+
python_files = tests.py test_*.py *_tests.py
5+
addopts=--cov --cov-report=html

0 commit comments

Comments
 (0)