Project

General

Profile

Download (1.53 KB) Statistics
| Branch: | Tag: | Revision:

root / tox.ini

1
[tox]
2
envlist =
3
    py27-wsgi,
4
    py27-plonetesting-zope2,
5
    py27-plonetesting-zope4,
6
    py27-grok,
7
    coverage-report
8

    
9
[testenv]
10
passenv = DISPLAY GOCEPT_*
11
usedevelop = True
12
setenv =
13
  COVERAGE_FILE=.coverage.{envname}
14
deps =
15
    gocept.pytestlayer
16
    pytest
17
    pytest-cov
18
    pytest-flake8
19
    pytest-remove-stale-bytecode
20
    pytest-rerunfailures
21
    pytest-sugar
22
    mock
23
    gocept.testing
24
    wsgi:  gocept.httpserverlayer
25
    zope2: gocept.httpserverlayer[plonetestingz2]
26
    zope2: Products.ZCatalog < 3.9999
27
    zope2: Products.ZCTextIndex < 4.0
28
    zope2: five.globalrequest < 1.9999
29
    zope2: Zope2 <= 3.9999
30
    zope2: plone.testing < 5.1
31
    zope4: gocept.httpserverlayer[plonetestingz2]
32
    zope4: Products.ZCatalog >= 4.0a1
33
    zope4: Zope2 >= 4.0a2
34
    zope4: AccessControl >= 4.0a3
35
    zope4: ZServer >= 4.0a1
36
    zope4: RestrictedPython >= 4.0a1
37
    grok:   zope.app.appsetup
38
    grok:   grok
39
    grok:   ZODB
40
    grok:   gocept.httpserverlayer[zopeappwsgi]
41

    
42
commands =
43
                       py.test {posargs} \
44
    plonetesting,wsgi:   --ignore=src/gocept/selenium/grok \
45
    plonetesting,grok:   --ignore=src/gocept/selenium/tests \
46
    plonetesting,grok:   --ignore=src/gocept/selenium/scripts \
47
    wsgi,grok:           --ignore=src/gocept/selenium/plonetesting \
48
                         --junitxml=junit-{envname}.xml
49

    
50
[testenv:coverage-report]
51
deps = coverage
52
setenv =
53
  COVERAGE_FILE=.coverage
54
skip_install = true
55
commands =
56
    coverage erase
57
    coverage combine
58
    coverage html
59
    coverage xml
60
    coverage report --fail-under=72