properly run pytest + cov in the tox env

This commit is contained in:
Brian S. Stephan 2020-06-17 16:34:50 -05:00
parent f77aebb097
commit 21f65813fb
1 changed files with 8 additions and 7 deletions

15
tox.ini
View File

@ -17,7 +17,7 @@ deps =
pytest-cov pytest-cov
commands = commands =
flake8 flake8
python -m pytest pytest --cov={envsitepackagesdir}/incorporealcms/
# whitelist commands we need # whitelist commands we need
whitelist_externals = ln whitelist_externals = ln
@ -39,13 +39,14 @@ max-complexity = 5
[pytest] [pytest]
python_files = tests.py test_*.py python_files = tests.py test_*.py
addopts = --cov --cov-report=term --cov-report=term-missing addopts = --cov-report=term --cov-report=term-missing
[coverage:run] [coverage:run]
branch = True branch = True
omit = omit =
.tox/* **/_version.py
setup.py
tests/* [coverage:paths]
versioneer.py source =
incorporealcms/_version.py ./
.tox/**/site-packages/