mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
tox: Always run coverage
There is value in examining coverage for something like Sphinx. Start doing this by default, in anticipation of increasing coverage over time. Signed-off-by: Stephen Finucane <stephen@that.guru>
This commit is contained in:
parent
c5dec1b6a9
commit
6d6d3a40f1
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,6 +12,7 @@ TAGS
|
|||||||
.tags
|
.tags
|
||||||
.tox
|
.tox
|
||||||
.venv
|
.venv
|
||||||
|
.coverage
|
||||||
.DS_Store
|
.DS_Store
|
||||||
sphinx/pycode/Grammar*pickle
|
sphinx/pycode/Grammar*pickle
|
||||||
distribute-*
|
distribute-*
|
||||||
|
5
tox.ini
5
tox.ini
@ -6,6 +6,7 @@ passenv = https_proxy http_proxy no_proxy
|
|||||||
deps=
|
deps=
|
||||||
six
|
six
|
||||||
pytest
|
pytest
|
||||||
|
pytest-cov
|
||||||
html5lib
|
html5lib
|
||||||
mock
|
mock
|
||||||
enum34
|
enum34
|
||||||
@ -14,7 +15,7 @@ setenv =
|
|||||||
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
||||||
PYTHONDONTWRITEBYTECODE = true
|
PYTHONDONTWRITEBYTECODE = true
|
||||||
commands=
|
commands=
|
||||||
{envpython} -Wall tests/run.py --ignore tests/py35 {posargs}
|
{envpython} -Wall tests/run.py --ignore tests/py35 --cov=sphinx {posargs}
|
||||||
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
||||||
|
|
||||||
[testenv:pypy]
|
[testenv:pypy]
|
||||||
@ -63,7 +64,7 @@ deps=
|
|||||||
typed_ast
|
typed_ast
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
commands=
|
commands=
|
||||||
{envpython} -Wall tests/run.py {posargs}
|
{envpython} -Wall tests/run.py --cov=sphinx {posargs}
|
||||||
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
||||||
|
|
||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
|
Loading…
Reference in New Issue
Block a user