diff options
author | drebs <drebs@riseup.net> | 2017-09-17 12:08:25 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-09-17 15:50:55 -0300 |
commit | cfff46ff9becdbe5cf48816870e625ed253ecc57 (patch) | |
tree | 8d239e4499f559d86ed17ea3632008303b25d485 /testing/tox.ini | |
parent | f29abe28bd778838626d12fcabe3980a8ce4fa8c (diff) |
[refactor] move tests to root of repository
Tests entrypoint was in a testing/ subfolder in the root of the
repository. This was made mainly because we had some common files for
tests and we didn't want to ship them (files in testing/test_soledad,
which is itself a python package. This sometimes causes errors when
loading tests (it seems setuptools is confused with having one python
package in a subdirectory of another).
This commit moves the tests entrypoint to the root of the repository.
Closes: #8952
Diffstat (limited to 'testing/tox.ini')
-rw-r--r-- | testing/tox.ini | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/testing/tox.ini b/testing/tox.ini deleted file mode 100644 index a8186f70..00000000 --- a/testing/tox.ini +++ /dev/null @@ -1,114 +0,0 @@ -[tox] -envlist = py27 -skipsdist=True - -[testenv] -basepython = python2.7 -commands = - ./ensure-pysqlcipher-has-usleep.sh - py.test -x \ - --cov-report=html \ - --cov-report=term \ - --cov=leap.soledad \ - {posargs} -usedevelop = True -deps = - coverage - pytest - pytest-cov - pytest-twisted - mock - testscenarios - setuptools-trial - pdbpp - couchdb - requests - service_identity - leap.common -# used by benchmarks - psutil - numpy - pytest-benchmark - elasticsearch - certifi -# install soledad from current tree - -e../ - -e../[client] - -e../[server] -setenv = - HOME=/tmp - TERM=xterm - XDG_CACHE_HOME=./.cache/ -install_command = pip install {opts} {packages} - -[testenv:py34] -basepython = python3.4 -commands = - py.test \ - --cov-report=html \ - --cov-report=term \ - --cov=leap.soledad \ - {posargs} -usedevelop = True -deps = - coverage - pytest - pytest-cov - pytest-twisted - mock - testscenarios - setuptools-trial - couchdb - requests - service_identity -# used by benchmarks - psutil - numpy - pytest-benchmark - elasticsearch - certifi -# install soledad local packages - -e../ - -e../[client] - -e../[server] -setenv = - HOME=/tmp - TERM=xterm -install_command = pip3 install {opts} {packages} - -[testenv:benchmark] -deps = - {[testenv]deps} -commands = -# we must make sure that installed pysqlcipher was built with the HAVE_USLEEP -# flag, or we might have problems with concurrent db access. - ./ensure-pysqlcipher-has-usleep.sh -# run benchmarks twice: once for time and cpu and a second time for memory - py.test --subdir=benchmarks {posargs} - py.test --subdir=benchmarks --watch-memory {posargs} -passenv = HOST_HOSTNAME - -[testenv:responsiveness] -deps = - {[testenv:benchmark]deps} -commands = - ./ensure-pysqlcipher-has-usleep.sh - py.test --subdir=responsiveness {posargs} - -[testenv:code-check] -changedir = .. -deps = - pep8 - flake8 -commands = - pep8 - flake8 - -[testenv:parallel] -deps = - {[testenv]deps} - pytest-xdist -install_command = pip install {opts} {packages} -commands = - ./ensure-pysqlcipher-has-usleep.sh - py.test {posargs} -n 4 |