Skip to content

Commit 19f3677

Browse files
committed
feat: enable parallel pytest coverage
The signal handler tests do not count towards coverage because they are tested in a separate process (to avoid signals being intercepted by `pytest` instead). We can still capture this coverage however by configuring pytest-coverage to know that we may be executing tests with multiple processes by using `multiprocessing`. Signed-off-by: Alex Jones <[email protected]>
1 parent 310b1c7 commit 19f3677

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ ignore = [
133133
addopts = "--cov=dvsim --cov-report term-missing"
134134
norecursedirs = ["*.egg", ".*", "_darcs", "build", "dist", "venv", "scratch", "doc"]
135135

136+
[tool.coverage.run]
137+
parallel = true
138+
concurrency = ["multiprocessing"]
139+
140+
[tool.coverage.report]
141+
show_missing = true
142+
136143
[tool.semantic_release]
137144
commit_parser = "conventional"
138145
version_toml = ["pyproject.toml:project.version"]

0 commit comments

Comments
 (0)