Skip to content

Commit

Permalink
🔧 config(coverage): workaround for missing paths in xml
Browse files Browse the repository at this point in the history
see [1] for the issue
see [2] for the workaround

[1]: nedbat/coveragepy#578
[2]: https://github.com/LibraryOfCongress/concordia/pull/857/files
  • Loading branch information
ljnsn committed Oct 12, 2024
1 parent 5b4d2d3 commit 22ded52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ warn_unreachable = true
branch = true
command_line = "--module pytest"
data_file = "reports/.coverage"
source = ["src"]
include = ["src/*"]
omit = ["tests/*"]

[tool.coverage.paths]
source = ["src/", "/home/runner/**/src", "D:\\**\\src"]
Expand All @@ -69,6 +70,8 @@ fail_under = 50
precision = 1
show_missing = true
skip_covered = true
include = ["src/*"]
omit = ["tests/*"]

[tool.coverage.xml]
output = "reports/coverage.xml"
Expand Down

0 comments on commit 22ded52

Please sign in to comment.