From 22ded525c159283653d2d67c8601efbc434bc87a Mon Sep 17 00:00:00 2001 From: ljnsn Date: Sat, 12 Oct 2024 17:43:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20config(coverage):=20workaround?= =?UTF-8?q?=20for=20missing=20paths=20in=20xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see [1] for the issue see [2] for the workaround [1]: https://github.com/nedbat/coveragepy/issues/578 [2]: https://github.com/LibraryOfCongress/concordia/pull/857/files --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bce4345..85d081a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] @@ -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"