Open etaylork opened 1 year ago
Hello has there been any update on this issue?
@etaylork Can you provide us with a way to reproduce the issue?
@nedbat I provide the details in the description section of my post is there some more information that you require?
Ideally, you would have a repo with the exact code that demonstrates the failure.
I'm fairly certain the instructions to reproduce are invalid, given the following:
app
while having two exclusions covering it (app
and app/app
), it's unclear what the overall project structure is as a result.pytest-cov
command given overrides the src
to be app
(via --cov=app
) but also disables the XML reporter in favor of the term-missing
reporter, so no XML report would be generatedcoverage.xml
snippet includes an absolute <source>
which is not possible when relative_files=True
. Additionally the config itself mentions modules not implied by the config that was given.If I had to read in between the lines, the given source actually includes a trailing slash and is fixed by the "possibly unreported bug" in https://github.com/nedbat/coveragepy/pull/1608.
Describe the bug In the generated coverage.xml report the tag is not populating the sources path.
To Reproduce
What version of Python are you using? python = 3.11 pytest = 4.0.0 coverage.py >= 7.0.0
.coveragerc file
Running with command
Actual behavior
Expected behavior
Additional context This issue is only happening for all coverage.py versions >= 7.0.0 where I cannot get the sources path to display in the coverage.xml file. The tests are running in docker containers.