File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ pip-delete-this-directory.txt
3232# PyTest cache
3333.pytest_cache /
3434
35+ # Coverage
36+ .coverage
37+
3538# Tox
3639.tox /
3740.cache /
Original file line number Diff line number Diff line change @@ -22,3 +22,9 @@ known_standard_library = mock
2222line_length = 100
2323multi_line_output = 3
2424skip_glob =*migrations*
25+
26+ [coverage:report]
27+ omit =
28+ .tox/*
29+ .eggs/*
30+ show_missing = True
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ def get_package_data(package):
108108 'factory-boy' ,
109109 'pytest-django' ,
110110 'pytest' ,
111+ 'pytest-cov' ,
111112 'django-polymorphic>=2.0' ,
112113 'packaging' ,
113114 'django-debug-toolbar'
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ setenv =
1515 DJANGO_SETTINGS_MODULE =example.settings.test
1616
1717commands =
18- python setup.py test {posargs}
18+ python setup.py test --addopts ' --cov --no-cov-on-fail ' {posargs}
1919
2020[testenv:flake8]
2121deps = flake8
You can’t perform that action at this time.
0 commit comments