summaryrefslogtreecommitdiff
path: root/testing/tox.ini
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-11-10 23:50:35 -0200
committerdrebs <drebs@leap.se>2016-11-10 23:50:35 -0200
commit564f55802455d08c9a38e892bb4b25ad6fbcb87d (patch)
treeb214482c46ecd09d531a3bc7bf254bf47d367fb5 /testing/tox.ini
parentc1950b41e0995b0213227bd0ce2c633f312037dc (diff)
parent0fd7e9f018b02161a844c11332ffced56b256010 (diff)
Merge tag '0.9.0'
Tag version 0.9.0
Diffstat (limited to 'testing/tox.ini')
-rw-r--r--testing/tox.ini37
1 files changed, 32 insertions, 5 deletions
diff --git a/testing/tox.ini b/testing/tox.ini
index 3663eef3..31cb8a4f 100644
--- a/testing/tox.ini
+++ b/testing/tox.ini
@@ -2,22 +2,49 @@
envlist = py27
[testenv]
-commands = py.test --pep8 {posargs}
-changedir = tests
+basepython = python2.7
+commands = py.test --cov-report=html \
+ --cov-report=term \
+ --cov=leap.soledad \
+ {posargs}
deps =
+ coverage
pytest
- pytest-flake8
- pytest-pep8
+ pytest-cov
+ pytest-twisted
mock
testscenarios
setuptools-trial
- pep8
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:perf]
+deps =
+ {[testenv]deps}
+ pytest-benchmark
+commands = py.test tests/perf {posargs}
+
+[testenv:code-check]
+changedir = ..
+deps =
+ pep8
+ flake8
+commands =
+ pep8 client server common
+ flake8 --ignore=F812,E731 client server common
+
+[testenv:parallel]
+deps =
+ {[testenv]deps}
+ pytest-xdist
install_command = pip install {opts} {packages}
+commands = py.test {posargs} -n 4