Enable branch coverage (and newer tox features).
This commit is contained in:
parent
2dbd3382f7
commit
a7dbd4ab39
1 changed files with 11 additions and 6 deletions
17
tox.ini
17
tox.ini
|
@ -3,17 +3,22 @@ envlist = py27, py34, py35, py36, flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
{envbindir}/py.test --cov=dosagelib --tb=short -n4 \
|
{envbindir}/py.test --tb=short -n auto \
|
||||||
--cov-report=xml:{toxworkdir}/cov-{envname}.xml --cov-report=term \
|
--junitxml={toxworkdir}/junit-{envname}.xml \
|
||||||
--junitxml={toxworkdir}/junit-{envname}.xml {posargs}
|
--cov=dosagelib --cov-config=tox.ini --cov-branch \
|
||||||
|
--cov-report=term \
|
||||||
|
--cov-report=xml:{toxworkdir}/cov-{envname}.xml \
|
||||||
|
{posargs}
|
||||||
|
|
||||||
|
|
||||||
passenv = CI TRAVIS TRAVIS_*
|
passenv = CI TRAVIS TRAVIS_*
|
||||||
# Also install optional dependencies for tests.
|
|
||||||
deps =
|
deps =
|
||||||
.[css,dimensions,test]
|
|
||||||
pytest-travis-fold
|
pytest-travis-fold
|
||||||
Pillow
|
# Also install extra dependencies for tests.
|
||||||
|
extras =
|
||||||
|
css
|
||||||
|
dimensions
|
||||||
|
test
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
commands =
|
commands =
|
||||||
|
|
Loading…
Reference in a new issue