Skip to content

Commit

Permalink
Merge pull request #79 from zopefoundation/tox-coverage
Browse files Browse the repository at this point in the history
Enable subunit in tox -e coverage and run under Python 3
  • Loading branch information
mgedmin committed Oct 20, 2018
2 parents ffc5006 + 49f3274 commit a0511ce
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tox.ini
Expand Up @@ -3,30 +3,33 @@ envlist =
py{27,py,34,35,36,37}{,-subunit},coverage,docs

[testenv]
deps =
.[test]
subunit: .[subunit]
extras =
test
subunit: subunit
commands =
python setup.py -q test -q

[testenv:coverage]
usedevelop = true
basepython =
python2.7
python3
commands =
coverage run setup.py -q test -q
coverage combine
coverage report --fail-under=85
setenv =
COVERAGE_PROCESS_START = {toxinidir}/.coveragerc
extras =
test
subunit
deps =
.[test]
coverage

[testenv:docs]
basepython =
python3.6
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
deps =
.[test,docs]
extras =
test
docs

0 comments on commit a0511ce

Please sign in to comment.