Skip to content

Commit

Permalink
Include correct files in make coverage & tox -e coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Oct 16, 2022
1 parent eb86f67 commit 4ae6d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test:
python -m unittest

coverage:
coverage run --source websockets,tests -m unittest
coverage run --source src/websockets,tests -m unittest
coverage html
coverage report --show-missing --fail-under=100

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarni
[testenv:coverage]
commands =
python -m coverage erase
python -W default -m coverage run -m unittest {posargs}
python -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest {posargs}
python -m coverage report --show-missing --fail-under=100
deps = coverage

Expand Down

0 comments on commit 4ae6d7b

Please sign in to comment.