properly run pytest + cov in the tox env
This commit is contained in:
parent
f77aebb097
commit
21f65813fb
15
tox.ini
15
tox.ini
@ -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/
|
||||||
|
Loading…
Reference in New Issue
Block a user