diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-11-15 10:50:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 10:50:08 -0600 |
commit | a51288e5d6878da8ac889c8a503a6791e5b2ac43 (patch) | |
tree | 99cfc099208da590f53685c44289a4cffd319a4c /tox.ini | |
parent | Merge pull request #4188 from matrix-org/rav/readme-update-1 (diff) | |
download | synapse-a51288e5d6878da8ac889c8a503a6791e5b2ac43.tar.xz |
Add a coveragerc (#4180)
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini index 03ddaeb0b7..dfd9afdd49 100644 --- a/tox.ini +++ b/tox.ini @@ -70,7 +70,7 @@ usedevelop=true usedevelop=true deps = {[base]deps} - psycopg2 + psycopg2 setenv = {[base]setenv} SYNAPSE_POSTGRES = 1 @@ -101,11 +101,22 @@ usedevelop=true [testenv:py36] usedevelop=true + +[testenv:py36-coverage] +usedevelop=true +deps = + {[base]deps} + coverage +commands = + /usr/bin/find "{toxinidir}" -name '*.pyc' -delete + python -m coverage run -m twisted.trial {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:} + + [testenv:py36-postgres] usedevelop=true deps = {[base]deps} - psycopg2 + psycopg2 setenv = {[base]setenv} SYNAPSE_POSTGRES = 1 |