coverage: scope to src/, ignore missing sources in xml report
'coverage xml' was failing with 'No source for code: config-3.py' because coverage was tracing conda internals (config-3.py from Miniconda's base env). Add source=src to restrict coverage collection to our source tree, and ignore_errors=True in [xml] as a safety net for any remaining phantom paths. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
0fbe480f38
commit
aa2f52f702
@@ -1,6 +1,10 @@
|
||||
# .coveragerc to control coverage.py
|
||||
[run]
|
||||
branch = True
|
||||
source = src
|
||||
|
||||
[xml]
|
||||
ignore_errors = True
|
||||
|
||||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
|
||||
Reference in New Issue
Block a user