diff --git a/pytest.ini b/pytest.ini index bc623c1..76976d8 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] -DJANGO_SETTINGS_MODULE = axes.tests.settings +addopts = --cov axes --cov-config .coveragerc --cov-append --cov-report term-missing python_files = tests.py test_*.py tests_*.py *_tests.py *_test.py +DJANGO_SETTINGS_MODULE = axes.tests.settings diff --git a/requirements.txt b/requirements.txt index 078bdac..8b0dc6c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,7 @@ coverage==4.5.2 mypy==0.670 prospector==1.1.6.2 pytest==4.3.0 +pytest-cov==2.6.1 pytest-django==3.4.7 sphinx_rtd_theme==0.4.3 tox==3.7.0 diff --git a/tox.ini b/tox.ini index 96a62df..b277f1f 100644 --- a/tox.ini +++ b/tox.ini @@ -27,8 +27,7 @@ usedevelop = True ignore_outcome = djangomaster: True commands = - coverage run -a -m pytest - coverage report + pytest prospector mypy axes setenv =