summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2021-05-11 08:30:06 +0200
committerGitHub <noreply@github.com>2021-05-11 08:30:06 +0200
commit4404adf123bbd0a51fcdb70f02ee6c8191837f09 (patch)
tree60cbb3720df9637ed16b2c1a5cf36ec2c153e628 /tox.ini
parentbd29a2630e2f1d2f61bd1837cbfeb202b89323dc (diff)
downloadzope-browser-4404adf123bbd0a51fcdb70f02ee6c8191837f09.tar.gz
Fix tests due to repoze.sphinx.autointerface problems (#16)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 11 insertions, 3 deletions
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