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

Add a coveragerc #4180

Merged
merged 5 commits into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
17 changes: 14 additions & 3 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 All @@ -122,7 +133,7 @@ skip_install = True
basepython = python3.6
deps =
flake8
commands = /bin/sh -c "flake8 synapse tests scripts scripts-dev scripts/hash_password scripts/register_new_matrix_user scripts/synapse_port_db synctl {env:PEP8SUFFIX:}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this happening?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because i mismergedddddd

commands = /bin/sh -c "flake8 synapse tests scripts scripts-dev scripts/register_new_matrix_user scripts/synapse_port_db synctl {env:PEP8SUFFIX:}"

[testenv:check_isort]
skip_install = True
Expand Down