Description
Originally reported by Anonymous
Hi there, we are relying on the XML coverage report generated in coverage.xml
for our analysis.
In previous versions of coverage, when we run the command such as:
$ py.test --cov directory_one --cov directory_two --cov-report xml tests
We would get a coverage.xml
file with sources
listed as:
<sources>
<source>/path/to/directory_one</source>
<source>/path/to/directory_two</source>
</sources>
And each file would be reported in a line such as this:
<class branch-rate="0" complexity="0" filename="directory_one/__init__.py" line-rate="1" name="__init__.py">
Now in coverage 4.4 the first level of the directory path is missing and we get only:
<class branch-rate="0" complexity="0" filename="__init__.py" line-rate="1" name="__init__.py">
Is there any way to get the previous behaviour?