Skip to content

Commit

Permalink
Fix test coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHag committed Sep 19, 2024
1 parent 40033c0 commit 340efa4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[run]
branch = True

source =
hid_parser
hidapi
keysms
logitech_receiver
solaar

omit =
*/tests/*
*/setup.py
*/__main__.py

[report]
exclude_lines =
pragma: no cover
if __name__ == '__main__':
if typing.TYPE_CHECKING
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
make install_pip PIP_ARGS='.["test"]'
- name: Run tests on macOS
run: |
export DYLD_LIBRARY_PATH=$(brew --prefix hidapi)/lib:$DYLD_LIBRARY_PATH && pytest --cov=lib/ tests/
export DYLD_LIBRARY_PATH=$(brew --prefix hidapi)/lib:$DYLD_LIBRARY_PATH && pytest --cov
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ lint:

test:
@echo "Running Solaar tests"
pytest --cov=lib/ tests/
pytest --cov

0 comments on commit 340efa4

Please sign in to comment.