reorganize tox.ini a bit and use pytest-cov rather than coverage directly
This commit is contained in:
parent
0f7495bf2b
commit
ab2d754e43
25
tox.ini
25
tox.ini
@ -21,12 +21,11 @@ deps = setuptools
|
|||||||
[testenv:py37]
|
[testenv:py37]
|
||||||
# run pytest and coverage
|
# run pytest and coverage
|
||||||
deps =
|
deps =
|
||||||
coverage
|
|
||||||
pytest
|
pytest
|
||||||
pytest-cov
|
pytest-cov
|
||||||
commands =
|
commands =
|
||||||
pytest --cov={envsitepackagesdir}/incorporealcms/ --cov-report=
|
pytest --cov={envsitepackagesdir}/incorporealcms/ \
|
||||||
coverage report -m --fail-under=80
|
--cov-report=term-missing --cov-branch --cov-fail-under=90
|
||||||
ln -sf {distdir} dist
|
ln -sf {distdir} dist
|
||||||
|
|
||||||
[testenv:security]
|
[testenv:security]
|
||||||
@ -52,6 +51,16 @@ commands =
|
|||||||
flake8
|
flake8
|
||||||
- flake8 --disable-noqa --select=E,W,F,C,D,A,G,B
|
- flake8 --disable-noqa --select=E,W,F,C,D,A,G,B
|
||||||
|
|
||||||
|
[coverage:paths]
|
||||||
|
source =
|
||||||
|
./
|
||||||
|
.tox/**/site-packages/
|
||||||
|
|
||||||
|
[coverage:run]
|
||||||
|
branch = True
|
||||||
|
omit =
|
||||||
|
**/_version.py
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
exclude =
|
exclude =
|
||||||
@ -66,13 +75,3 @@ python_files =
|
|||||||
*_tests.py
|
*_tests.py
|
||||||
tests.py
|
tests.py
|
||||||
test_*.py
|
test_*.py
|
||||||
|
|
||||||
[coverage:run]
|
|
||||||
branch = True
|
|
||||||
omit =
|
|
||||||
**/_version.py
|
|
||||||
|
|
||||||
[coverage:paths]
|
|
||||||
source =
|
|
||||||
./
|
|
||||||
.tox/**/site-packages/
|
|
||||||
|
Loading…
Reference in New Issue
Block a user