summaryrefslogtreecommitdiff
path: root/testing/tox.ini
blob: fecd4c5b0007c20a997412d6cf940b4f49c7ef3d (plain)
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
[tox]
envlist = py27

[testenv]
commands = py.test --cov-report=html \
                   --cov-report=term \
		   --cov=leap.soledad \
		   {posargs}
deps =
    coverage
    pytest
    pytest-cov
    pytest-twisted
    pytest-benchmark
    mock
    testscenarios
    setuptools-trial
    pdbpp
    couchdb
    requests
# install soledad local packages
    -e../common
    -e../client
    -e../server
setenv =
    HOME=/tmp
    TERM=xterm
install_command = pip install {opts} {packages}

[testenv:pep8]
changedir = ..
deps = pep8
commands = pep8 {posargs} client server common

[testenv:parallel]
deps =
    {[testenv]deps}
    pytest-xdist
install_command = pip install {opts} {packages}
commands = py.test {posargs} -n 4