Skip to content

Commit

Permalink
Fix the relative path for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
anevis committed Apr 8, 2024
1 parent 273ca96 commit 6ccca83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = true
source = src/
relative_files = true
omit =
# Omit any test files
*/*_test.py

[xml]
output = ./coverage.xml
2 changes: 1 addition & 1 deletion devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"pytest src/"
],
"test-cov": [
"pytest src/ --cov=src/ --cov-report=xml"
"pytest --cov=src/ --cov-report=xml"
],
"lint": [
"flake8 src/"
Expand Down

0 comments on commit 6ccca83

Please sign in to comment.