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
commands =
flake8
python -m pytest
pytest --cov={envsitepackagesdir}/incorporealcms/
# whitelist commands we need
whitelist_externals = ln
@ -39,13 +39,14 @@ max-complexity = 5
[pytest]
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]
branch = True
omit =
.tox/*
setup.py
tests/*
versioneer.py
incorporealcms/_version.py
**/_version.py
[coverage:paths]
source =
./
.tox/**/site-packages/