mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
tox: Always show 25 slowest tests
pytest supports this natively [1] and this is what is currently used by Travis. There's value in seeing similar data locally. [1] https://docs.pytest.org/en/latest/usage.html#profiling-test-execution-duration Signed-off-by: Stephen Finucane <stephen@that.guru>
This commit is contained in:
parent
6d6d3a40f1
commit
71a5ec18be
5
tox.ini
5
tox.ini
@ -15,7 +15,8 @@ setenv =
|
||||
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
||||
PYTHONDONTWRITEBYTECODE = true
|
||||
commands=
|
||||
{envpython} -Wall tests/run.py --ignore tests/py35 --cov=sphinx {posargs}
|
||||
{envpython} -Wall tests/run.py --ignore tests/py35 --cov=sphinx \
|
||||
--durations 25 {posargs}
|
||||
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
||||
|
||||
[testenv:pypy]
|
||||
@ -64,7 +65,7 @@ deps=
|
||||
typed_ast
|
||||
{[testenv]deps}
|
||||
commands=
|
||||
{envpython} -Wall tests/run.py --cov=sphinx {posargs}
|
||||
{envpython} -Wall tests/run.py --cov=sphinx --durations 25 {posargs}
|
||||
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
||||
|
||||
[testenv:mypy]
|
||||
|
Loading…
Reference in New Issue
Block a user