Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add a coveragerc (#4180)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl authored Nov 15, 2018
1 parent b5d92d4 commit a51288e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[run]
branch = True
parallel = True
source = synapse

[paths]
source=
coverage

[report]
precision = 2
ignore_errors = True
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ prune .github
prune demo/etc
prune docker
prune .circleci
prune .coveragerc

exclude jenkins*
recursive-exclude jenkins *.sh
1 change: 1 addition & 0 deletions changelog.d/4180.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A coveragerc file, as well as the py36-coverage tox target, have been added.
15 changes: 13 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ usedevelop=true
usedevelop=true
deps =
{[base]deps}
psycopg2
psycopg2
setenv =
{[base]setenv}
SYNAPSE_POSTGRES = 1
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a51288e

Please sign in to comment.