diff options
author | Stephen Finucane <stephen@that.guru> | 2017-12-22 18:00:25 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-12-24 21:24:41 +0000 |
commit | 77ca8947236c1b8e42c0bd47567c87ddede9b1b3 (patch) | |
tree | 8281179da8ce1ddcf490b680175a42972170f2f1 /tox.ini | |
parent | a3f9935d958197a3c0963cec97755db1ff32a3a3 (diff) | |
download | sphinx-git-77ca8947236c1b8e42c0bd47567c87ddede9b1b3.tar.gz |
tox: Report coverage to user
Run 'coverage report' after a successful coverage run. There's enough
coverage-related stuff here at this point to warrant its own section.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -8,7 +8,6 @@ passenv = description = py{27,34,35,36,py}: Run unit tests against {envname}. du{11,12,13,14}: Run unit tests with the given version of docutils. - coverage: Run code coverage checks. # TODO(stephenfin) Replace this with the 'extras' config option when tox 2.4 is # widely available, likely some time after the Ubuntu 18.04 release @@ -22,7 +21,6 @@ deps = du14: docutils==0.14 setenv = SPHINX_TEST_TEMPDIR = {envdir}/testbuild - coverage: PYTEST_ADDOPTS = --cov sphinx --cov-config {toxinidir}/setup.cfg commands= {envpython} -Wall tests/run.py --durations 25 {posargs} @@ -41,6 +39,15 @@ deps = commands = pylint --rcfile utils/pylintrc sphinx +[testenv:coverage] +description = + Run code coverage checks. +setenv = + PYTEST_ADDOPTS = --cov sphinx --cov-config {toxinidir}/setup.cfg +commands = + {[testenv]commands} + coverage report + [testenv:mypy] description = Run type checks. |