Skip to content

Commit 4ae6d7b

Browse files
committed
Include correct files in make coverage & tox -e coverage.
1 parent eb86f67 commit 4ae6d7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test:
1616
python -m unittest
1717

1818
coverage:
19-
coverage run --source websockets,tests -m unittest
19+
coverage run --source src/websockets,tests -m unittest
2020
coverage html
2121
coverage report --show-missing --fail-under=100
2222

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarni
1717
[testenv:coverage]
1818
commands =
1919
python -m coverage erase
20-
python -W default -m coverage run -m unittest {posargs}
20+
python -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest {posargs}
2121
python -m coverage report --show-missing --fail-under=100
2222
deps = coverage
2323

0 commit comments

Comments
 (0)