1. Ned Batchelder
  2. coverage.py
  3. Issues
Issue #181 duplicate

XML report does not include <sources> and cannot be used in all places

Anonymous created an issue

We are using the Jenkins Cobertura plugin to report coverage produced from coverage.py xml. The file format is mostly there and coverage and graphs appear. However the drill down to code is not there because there is no <sources> section at the top of the file. For reference the following section was produced by cobertura:


Can <sources> be added to the report?

Comments (2)

  1. karlp

    I was seeing this too, but it wasn't immediately obvious what the problem was. Running nosetests --with-coverage --cover-xml --cover-xml-file=blah.xml, I got a format that had different filenames than when doing "nostests --with-coverage && coverage xml"

    One of them works in jenkins, one of them doesn't.

  2. Log in to comment