summaryrefslogtreecommitdiff
path: root/testing/tox.ini
diff options
context:
space:
mode:
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