Run coverage with pytest

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
Aleksi Häkli 2019-02-22 08:29:50 +02:00
parent 5a78d41828
commit 7152cf482d
No known key found for this signature in database
GPG key ID: 3E7146964D726BBE
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -27,8 +27,7 @@ usedevelop = True
ignore_outcome =
djangomaster: True
commands =
coverage run -a -m pytest
coverage report
pytest
prospector
mypy axes
setenv =