Skip to content

Commit 95667de

Browse files
committed
fix: test coverage report target in makefile
Signed-off-by: Christopher Arndt <[email protected]>
1 parent ab32189 commit 95667de

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ clean-pyc:
4949
find . -name '*~' -exec rm -f {} +
5050
find . -name __pycache__ -type d -exec rm -rf {} +
5151

52-
coverage:
53-
$(PYTHON) -mcoverage run --source rtmidi test
54-
$(PYTHON) -mcoverage report -m
55-
$(PYTHON) -mcoverage html
52+
coverage: build
53+
cp -f $(BUILDDIR)/rtmidi/_rtmidi.*.so rtmidi/
54+
cp -f $(BUILDDIR)/rtmidi/version.py rtmidi/
55+
$(PYTHON) -m coverage run --source rtmidi -m pytest tests
56+
$(PYTHON) -m coverage report -m
57+
$(PYTHON) -m coverage html
58+
-rm -f rtmidi/*.so rtmidi/version.py
5659
-xdg-open htmlcov/index.html
5760

5861
dist: clean release

0 commit comments

Comments
 (0)