mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 09:31:35 +03:00
Add a coveragerc (#4180)
This commit is contained in:
parent
166cc35a48
commit
404cee9853
4 changed files with 27 additions and 2 deletions
12
.coveragerc
Normal file
12
.coveragerc
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
parallel = True
|
||||||
|
source = synapse
|
||||||
|
|
||||||
|
[paths]
|
||||||
|
source=
|
||||||
|
coverage
|
||||||
|
|
||||||
|
[report]
|
||||||
|
precision = 2
|
||||||
|
ignore_errors = True
|
|
@ -34,6 +34,7 @@ prune .github
|
||||||
prune demo/etc
|
prune demo/etc
|
||||||
prune docker
|
prune docker
|
||||||
prune .circleci
|
prune .circleci
|
||||||
|
prune .coveragerc
|
||||||
|
|
||||||
exclude jenkins*
|
exclude jenkins*
|
||||||
recursive-exclude jenkins *.sh
|
recursive-exclude jenkins *.sh
|
||||||
|
|
1
changelog.d/4180.misc
Normal file
1
changelog.d/4180.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
A coveragerc file, as well as the py36-coverage tox target, have been added.
|
15
tox.ini
15
tox.ini
|
@ -70,7 +70,7 @@ usedevelop=true
|
||||||
usedevelop=true
|
usedevelop=true
|
||||||
deps =
|
deps =
|
||||||
{[base]deps}
|
{[base]deps}
|
||||||
psycopg2
|
psycopg2
|
||||||
setenv =
|
setenv =
|
||||||
{[base]setenv}
|
{[base]setenv}
|
||||||
SYNAPSE_POSTGRES = 1
|
SYNAPSE_POSTGRES = 1
|
||||||
|
@ -101,11 +101,22 @@ usedevelop=true
|
||||||
[testenv:py36]
|
[testenv:py36]
|
||||||
usedevelop=true
|
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]
|
[testenv:py36-postgres]
|
||||||
usedevelop=true
|
usedevelop=true
|
||||||
deps =
|
deps =
|
||||||
{[base]deps}
|
{[base]deps}
|
||||||
psycopg2
|
psycopg2
|
||||||
setenv =
|
setenv =
|
||||||
{[base]setenv}
|
{[base]setenv}
|
||||||
SYNAPSE_POSTGRES = 1
|
SYNAPSE_POSTGRES = 1
|
||||||
|
|
Loading…
Reference in a new issue