Package name is missing in XML report.

Issue #235 resolved
schlauch created an issue

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

Comments (15)

  1. schlauch reporter

    I attached a small project which illustrates the problem. It also contains the coverage XML reports which I created with version 3.5.3 and 3.6.: The problem is the name attribute in the package tag.

    For more information see the README.txt.

  2. Matt Wright

    I just downgraded from 3.7.1 to 3.5.0. With 3.7.1, package name was missing. With 3.5.0, package name was _not_missing.

  3. Camilo Nova

    @ned the pull request was updated so it can be easily integrated. Will be great if you take and action soon on this mayor bug to fix it.

  4. Log in to comment