Project

General

Profile

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

root / tox.ini

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

    
8
[testenv]
9
passenv = DISPLAY GOCEPT_*
10
usedevelop = true
11
setenv =
12
  COVERAGE_FILE=.coverage.{envname}
13
deps =
14
    gocept.pytestlayer
15
    pytest
16
    pytest-cov
17
    pytest-flake8
18
    pytest-remove-stale-bytecode
19
    pytest-rerunfailures
20
    mock
21
    gocept.testing
22
    wsgi:  gocept.httpserverlayer
23
    plonetesting: gocept.httpserverlayer[plonetestingzope]
24
    plonetesting: Products.ZCatalog >= 4.0a1
25
    plonetesting: Zope >= 4.0b7
26
    plonetesting: AccessControl >= 4.0a3
27
    plonetesting: RestrictedPython >= 4.0a1
28
    plonetesting: DocumentTemplate >= 3.0b5
29
    plonetesting: Persistence >= 3.0a3
30
    grok:   zope.app.appsetup
31
    grok:   grok
32
    grok:   ZODB
33
    grok:   gocept.httpserverlayer[zopeappwsgi]
34
commands =
35
                       py.test {posargs} \
36
    plonetesting,wsgi:   --ignore=src/gocept/selenium/grok \
37
    plonetesting,grok:   --ignore=src/gocept/selenium/tests \
38
    plonetesting,grok:   --ignore=src/gocept/selenium/scripts \
39
    wsgi,grok:           --ignore=src/gocept/selenium/plonetesting \
40
                         --junitxml=junit-{envname}.xml
41

    
42
[testenv:coverage-report]
43
deps = coverage
44
setenv =
45
  COVERAGE_FILE=.coverage
46
skip_install = true
47
commands =
48
    coverage erase
49
    coverage combine
50
    coverage html
51
    coverage xml
52
    coverage report --fail-under=72