-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (38 loc) · 1007 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[tox]
envlist =
{py37,py38,py39,py310,py311}-{wsgi,zopeappwsgi,plonetesting},
coverage-report
[testenv]
usedevelop = True
setenv =
COVERAGE_FILE=.coverage.{envname}
extras =
test
zopeappwsgi: zopeappwsgi
plonetesting: plonetesting
deps =
coverage
zopeappwsgi: grok >= 3
plonetesting: AccessControl >= 4
plonetesting: DocumentTemplate >= 3
plonetesting: Persistence >= 3
plonetesting: Products.ZCatalog >= 4
plonetesting: RestrictedPython >= 4
commands =
coverage run {envbindir}/test \
--path=src \
wsgi,plonetesting: --ignore_dir=zopeappwsgi \
wsgi,zopeappwsgi: --ignore_dir=plonetestingzope \
{posargs:-cv}
[testenv:coverage-report]
depends = {py36,py37}-{wsgi,zopeappwsgi,plonetesting}
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage erase
coverage combine
coverage html
coverage xml
coverage report