Skip to content

Commit 66365f5

Browse files
committed
Collect coverage from terminal test subprocesses
1 parent 4a79cb4 commit 66365f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ addopts = [
116116
]
117117

118118
[tool.coverage.run]
119+
# Include the cmd2 applications launched by the terminal integration tests.
120+
patch = ["subprocess"]
119121
# Use sys.monitoring on Python 3.12+; coverage falls back with a warning on 3.11.
120122
core = "sysmon"
121123
source = ["cmd2"]

0 commit comments

Comments
 (0)