Merge pull request #1673 from matrix-org/rav/fix_tox_tests

Fix unittests under tox
This commit is contained in:
Richard van der Hoff 2016-12-06 11:45:55 +00:00 committed by GitHub
commit 5a2c33c12e

View file

@ -8,8 +8,15 @@ deps =
mock
python-subunit
junitxml
# needed by some of the tests
lxml
setenv =
PYTHONDONTWRITEBYTECODE = no_byte_code
# As of twisted 16.4, trial tries to import the tests as a package, which
# means it needs to be on the pythonpath.
PYTHONPATH = {toxinidir}
commands =
/bin/sh -c "find {toxinidir} -name '*.pyc' -delete ; coverage run {env:COVERAGE_OPTS:} --source={toxinidir}/synapse \
{envbindir}/trial {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:}"