Skip to content

Commit 3ca13af

Browse files
committed
Add debugging output for failing coverage test
1 parent 28c27e6 commit 3ca13af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,16 @@ def tests(session: Session) -> None:
120120
@session(python=python_versions[0])
121121
def coverage(session: Session) -> None:
122122
"""Produce the coverage report."""
123-
args = session.posargs or ["report"]
123+
args = session.posargs or ["report", "--debug=pathmap"]
124124

125125
session.run("uv", "pip", "install", "coverage[toml]", external=True)
126126

127127
if not session.posargs and any(Path().glob(".coverage.*")):
128128
session.run("coverage", "combine", external=True)
129-
129+
130+
# Add a debug command to see what files coverage is tracking
131+
session.run("coverage", "debug", "data", external=True)
132+
130133
session.run("coverage", *args, external=True)
131134

132135

0 commit comments

Comments
 (0)