From 4404adf123bbd0a51fcdb70f02ee6c8191837f09 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 11 May 2021 08:30:06 +0200 Subject: Fix tests due to repoze.sphinx.autointerface problems (#16) --- tox.ini | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 7d9fc1e..bd91068 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,7 @@ # Generated from: # https://github.com/zopefoundation/meta/tree/master/config/pure-python [tox] +minversion = 3.18 envlist = lint py27 @@ -19,7 +20,7 @@ usedevelop = true deps = zope.testrunner commands = - zope-testrunner --test-path=src [] + zope-testrunner --test-path=src {posargs:-vc} extras = test @@ -37,19 +38,26 @@ commands = [testenv:docs] basepython = python3 +skip_install = false +# Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: +deps = Sphinx < 4 extras = docs +commands_pre = commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html [testenv:coverage] basepython = python3 +allowlist_externals = + mkdir deps = coverage coverage-python-version zope.testrunner commands = - coverage run -m zope.testrunner --test-path=src [] + mkdir -p {toxinidir}/parts/htmlcov + coverage run -m zope.testrunner --test-path=src {posargs:-vc} coverage html coverage report -m --fail-under=100 @@ -70,4 +78,4 @@ exclude_lines = raise AssertionError [coverage:html] -directory = htmlcov +directory = parts/htmlcov -- cgit v1.2.1