Package name is missing in XML report. · Issue #235 · nedbat/coveragepy (original) (raw)
Originally reported by schlauch (Bitbucket: schlauch, GitHub: schlauch)
Since 3.6 the package name is missing. I think the problem is the optimization of the package name. See xmlreport.py line 95 (xml_file):
- The cu.name is a file path in my case (e.g., src\sample_calculator_ init_)
- rparition goes wrong => creates an empty string because cu.name has no "."
I used coverage.py 3.6 on Windows 7 with Python 2.7.3
In 3.5 os.path.split has been used... However, this has been removed by commit:
https://bitbucket.org/ned/coveragepy/commits/6af3ba6d47e49420662c5e9f2d37f0f479ae6949
- Bitbucket: https://bitbucket.org/ned/coveragepy/issue/235
- This issue had attachments: CoverageXmlRegression.zip. See the original issue for details.