Skip to content

Commit 59a899e

Browse files
committed
Add coverage concurrency configuration for thread tracing
CLI tests use run_in_executor which runs code in thread pool. Coverage wasn't tracing these threads on Python 3.11, causing missing coverage for lines executed in the executor. This adds thread and multiprocessing concurrency support to coverage configuration.
1 parent b3f647b commit 59a899e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ addopts = [
9898
]
9999
filterwarnings = ["error"]
100100

101+
[tool.coverage.run]
102+
concurrency = ["thread", "multiprocessing"]
103+
101104
[tool.pyright]
102105
include = ["src", "tests"]
103106
typeCheckingMode = "strict"

0 commit comments

Comments
 (0)