Skip to content

Commit

Permalink
Omit tox and tests from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
amysutedja committed May 15, 2020
1 parent 3ba350d commit ff39852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
omit =
.tox/*
tests/*
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ deps = pytest

distdir = build
commands =
{env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov} {posargs}
{env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov --cov-config=.coveragerc} {posargs}

[testenv:clean]
deps = coverage
Expand Down

0 comments on commit ff39852

Please sign in to comment.